Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: UNSURE 0.368 X-Spam-Level: *** X-Spam-Evidence: '*H*': 0.30; '*S*': 0.04; 'statistical': 0.09; 'utilizing': 0.09; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'specific,': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'variable': 0.18; 'user.': 0.19; '>>>': 0.22; 'tells': 0.24; 'header:In-Reply-To:1': 0.27; 'leave': 0.29; 'am,': 0.29; 'generally': 0.29; 'tim': 0.29; 'said,': 0.30; 'message- id:@mail.gmail.com': 0.30; 'usually': 0.31; 'away.': 0.31; 'extract': 0.31; 'actual': 0.34; 'subject:from': 0.34; 'could': 0.34; 'basic': 0.35; 'possible.': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'addresses,': 0.36; 'in.': 0.36; 'possible': 0.36; 'being': 0.38; 'sometimes': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'does': 0.39; 'though,': 0.39; 'to:addr:python.org': 0.39; 'enough': 0.39; 'even': 0.60; 'analysis,': 0.60; 'dave': 0.60; 'house.': 0.60; "you're": 0.61; 'address': 0.63; 'more': 0.64; 'different': 0.65; 'city': 0.66; 'side': 0.67; 'internet': 0.71; 'further,': 0.74; 'jul': 0.74; 'address,': 0.75; 'country': 0.77; 'geo': 0.84; 'geolocation': 0.84; "isp's": 0.84; 'subject:Location': 0.84; 'visits': 0.84; 'angel': 0.91; 'tomorrow': 0.95; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=x670eOpbDyFe78iDSG5ma1g7MQZILOC8EhlXskD6Qms=; b=Pu0aFGjNkHCK1d2vuTzwS5k6k+v1PN9Hr/zutHdg+iaeE3XHJw/7N/77xbSOmhFYxX 08a4lpENi5UBhfI8e1rwi7C2rHxOMDJioNZSFibJLdisR/Q1shlm91tBvkqEgBve9F/z X6Kr8MlHyf8s6ygKTZZ/L19N7qpwZxBaAzanuqsYe2bX4qtnbJWlAtZ0d89CX3OzSfGh xQ7TGvRjDwLkUZ5s7gJYzteDq5McQ+bNnZf8OfziC7RwmZPA3bMhAbj4wFwTdsja/8MG TPUc+4bPVGyDaBASlmbWES4yc9ZXXir64BMNkayao933ohSwntrmYBqGgaAso5nBOezh tf+g== MIME-Version: 1.0 X-Received: by 10.220.128.72 with SMTP id j8mr8465427vcs.3.1373072793948; Fri, 05 Jul 2013 18:06:33 -0700 (PDT) In-Reply-To: References: Date: Sat, 6 Jul 2013 11:06:33 +1000 Subject: Re: Geo Location extracted from visitors ip address From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-Mailman-Approved-At: Mon, 08 Jul 2013 11:22:35 +0200 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 32 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1373275356 news.xs4all.nl 15879 [2001:888:2000:d::a6]:48014 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:50137 On Sat, Jul 6, 2013 at 7:18 AM, Dave Angel wrote: > On 07/05/2013 04:44 PM, Tim Roberts wrote: >> >> ????? Gr33k wrote: >>> >>> >>> Is there a way to extract out of some environmental variable the Geo >>> location of the user being the city the user visits out website from? >>> >>> Perhaps by utilizing his originated ip address? >> >> >> It is possible to look up the geographic region associated with a block of >> IP addresses. That does not necessarily bear any resemblence to the >> actual >> location of the user. It tells you the location of the Internet provider >> that registered the IP addresses. >> > > To be more specific, the last time I checked, my IP address is registered to > a location over 1000 miles away. And it's not a dedicated IP address, so it > could very well be used tomorrow by someone 200 nmiles the other side of the > registered location. > > Further, I sometimes use other ISP's with different addresses, even when I > don't leave the house. And once I leave, anything's possible. That said, though, geolocation is usually accurate enough to report which country you're in. For basic statistical analysis, that's generally sufficient. ChrisA