Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.albasani.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed4.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.319 X-Spam-Level: *** X-Spam-Evidence: '*H*': 0.49; '*S*': 0.13; 'utilizing': 0.09; 'variables.': 0.09; 'cc:addr:python-list': 0.11; 'stored': 0.12; 'lookups.': 0.16; 'received:forthnet.gr': 0.16; 'wrote:': 0.18; 'variable': 0.18; 'cc:addr:python.org': 0.22; 'header:User- Agent:1': 0.23; 'please?': 0.24; 'environment': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'extract': 0.31; 'fri,': 0.33; 'subject:from': 0.34; 'no,': 0.35; 'but': 0.35; 'there': 0.35; 'being': 0.38; 'pm,': 0.38; 'how': 0.40; 'from:charset:utf-8': 0.61; 'back': 0.62; 'address': 0.63; 'more': 0.64; 'to:addr:gmail.com': 0.65; 'details': 0.65; 'received:46': 0.66; 'city': 0.66; 'dont': 0.67; '8bit%:92': 0.71; 'jul': 0.74; 'geo': 0.84; 'geolocation': 0.84; 'subject:Location': 0.84; 'visits': 0.84; 'hill': 0.95; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=superhost.gr; s=default; h=Content-Type:In-Reply-To:References:Subject:CC:To:MIME-Version:From:Date:Message-ID; bh=VDu4BdMjqBcksiixEu+U9JoEoECbCTxvlUBplpMuCFo=; b=mxgqTg1pbMukHR7b82bD/xKqM8Y4G19IjpPd4uk4sSd8sdhfLRI4sy8VHPBaneQXBdi8CjW/WWdq/ISIFDlQGjE6AY0jeo4hUb3F8AcGpE7qFUZpvLAbk1X27p7QHpJ6QL1G1k6YTUTUc/EW7Cuz5zdGVsSkrPCUGlNMFOZpnqw=; Date: Fri, 05 Jul 2013 22:43:16 +0300 From: =?UTF-8?B?U3VwcG9ydCBieSDOnc6vzrrOv8+C?= Organization: SuperHost A.E. User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: Jerry Hill Subject: Re: Geo Location extracted from visitors ip address References: In-Reply-To: Content-Type: multipart/alternative; boundary="------------020300040200060407070809" X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - nikos.superhost.gr X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - superhost.gr X-Get-Message-Sender-Via: nikos.superhost.gr: authenticated_id: nikos@superhost.gr X-Mailman-Approved-At: Mon, 08 Jul 2013 11:22:35 +0200 Cc: "python-list \(General\)" 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: 59 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1373275356 news.xs4all.nl 15877 [2001:888:2000:d::a6]:48008 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:50134 This is a multi-part message in MIME format. --------------020300040200060407070809 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Στις 5/7/2013 10:28 μμ, ο/η Jerry Hill έγραψε: > On Fri, Jul 5, 2013 at 3:08 PM, Νίκος 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? > No, you'd need to take the originating IP address and look it up in a > geolocation database or submit it to a geolocation service and get the > response back from them. It's not stored in any environment > variables. I see but i dont know how to do this Geo location lookups. Can you give me more specific details please? -- Webhost --------------020300040200060407070809 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
Στις 5/7/2013 10:28 μμ, ο/η Jerry Hill έγραψε:
On Fri, Jul 5, 2013 at 3:08 PM, Νίκος Gr33k <nikos@superhost.gr> 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?
No, you'd need to take the originating IP address and look it up in a
geolocation database or submit it to a geolocation service and get the
response back from them.  It's not stored in any environment
variables.
I see but i dont know how to do this Geo location lookups.
Can you give me more specific details please?
--------------020300040200060407070809--