Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.erje.net!us.feeder.erje.net!news.linkpendium.com!news.linkpendium.com!panix!not-for-mail From: Grant Edwards Newsgroups: comp.lang.python Subject: Re: Geo Location extracted from visitors ip address Date: Mon, 8 Jul 2013 14:27:36 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 32 Message-ID: References: NNTP-Posting-Host: dsl.comtrol.com X-Trace: reader2.panix.com 1373293656 9133 64.122.56.22 (8 Jul 2013 14:27:36 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Mon, 8 Jul 2013 14:27:36 +0000 (UTC) User-Agent: slrn/1.0.1 (Linux) Xref: csiph.com comp.lang.python:50157 On 2013-07-06, ?????????? Gr33k wrote: > ???????? 6/7/2013 4:41 ????, ??/?? ?????????? Gr33k ????????????: >> Yes i know iam only storing the ISP's city instead of visitor's homeland >> but this is the closest i can get: >> >> try: >> gi = pygeoip.GeoIP('/home/nikos/GeoLiteCity.dat') >> city = gi.time_zone_by_addr( os.environ['HTTP_CF_CONNECTING_IP'] ) >> host = socket.gethostbyaddr( os.environ['HTTP_CF_CONNECTING_IP'] ) >> except Exception as e: >> host = repr(e) >> >> >> Tried it myself and it falsey said that i'am from Europe/Athens (capital >> of Greece) while i'am from Europe/Thessaloniki (sub-capital of Greece) >> >> If we can pin-point the uvisitor more accurately plz let me know. > > Good morning from Greece, > > All my Greece visitors as Dave correctly said have the ISP address which > here in Greece is Europe/Athens, so i have now way to distinct the > cities of the visitors. > > Is there any way to pinpoint the visitor's exact location? No. -- Grant Edwards grant.b.edwards Yow! Does someone from at PEORIA have a SHORTER gmail.com ATTENTION span than me?