Skip to content

Commit e656153

Browse files
author
Tomas Caha
committed
Fix NeustarWeb new URL and updated requirements.txt
1 parent 29a7040 commit e656153

File tree

5 files changed

+52
-46
lines changed

5 files changed

+52
-46
lines changed

CHANGELOG.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
0.1.5 - 15-Apr-2019
2+
-------------------
3+
4+
* Fix ``ip2geotools.databases.commercial.NeustarWeb`` because of new URL
5+
* Updated ``requirements.txt``
6+
17
0.1.4 - 20-Feb-2019
28
-------------------
39

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Where:
6262

6363
* ``-h``, ``--help``: show help message and exit
6464

65-
* ``-d {dbipcity,hostip,...,eurek}``: geolocation database to be used (case insesitive)
65+
* ``-d {dbipcity,hostip,...,ipdata}``: geolocation database to be used (case insesitive)
6666

6767
* ``--api_key API_KEY``: API key for given geolocation database (if needed)
6868

@@ -81,7 +81,7 @@ Examples:
8181
.. code:: bash
8282
8383
$ ip2geotools 147.229.2.90 -d dbipcity -f json
84-
{"ip_address": "147.229.2.90", "city": "Brno (Brno st\u0159ed)", "region": "South Moravian", "country": "CZ", "latitude": 49.1926824, "longitude": 16.6182105}
84+
{"ip_address": "147.229.2.90", "city": "Brno (Brno střed)", "region": "South Moravian", "country": "CZ", "latitude": 49.1926824, "longitude": 16.6182105}
8585
8686
Models
8787
------

ip2geotools/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
__title__ = 'ip2geotools'
55
__description__ = 'Simple tool for getting geolocation information on ' + \
66
'given IP address from various geolocation databases.'
7-
__version__ = '0.1.4'
7+
__version__ = '0.1.5'
88
__author__ = 'Tomas Caha'
99
__author_email__ = 'tomas-net@seznam.cz'
1010
__url__ = 'https://github.com/tomas-net/ip2geotools'

ip2geotools/databases/commercial.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,15 +281,15 @@ def get(ip_address, api_key=None, db_path=None, username=None, password=None):
281281
class NeustarWeb(IGeoIpDatabase):
282282
"""
283283
Class for accessing geolocation data provided by searching directly
284-
on https://www.security.neustar/resources/tools/ip-geolocation-lookup-tool/.
284+
on https://www.home.neustar/resources/tools/ip-geolocation-lookup-tool/.
285285
286286
"""
287287

288288
@staticmethod
289289
def get(ip_address, api_key=None, db_path=None, username=None, password=None):
290290
# process request
291291
try:
292-
request = requests.post('https://www.security.neustar/resources/tools/ip-geolocation-lookup-tool',
292+
request = requests.post('https://www.home.neustar/resources/tools/ip-geolocation-lookup-tool',
293293
headers={'User-Agent': 'Mozilla/5.0'},
294294
data=[('ip', ip_address)],
295295
timeout=62)

requirements.txt

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,41 @@
1-
astroid==2.1.0
2-
autopep8==1.4.3
3-
bleach==3.0.2
4-
certifi==2018.10.15
5-
chardet==3.0.4
6-
Click==7.0
7-
cssselect==1.0.3
8-
decorator==4.3.0
9-
dicttoxml==1.7.4
10-
docutils==0.14
11-
future==0.17.1
12-
geocoder==1.38.1
13-
geoip2==2.9.0
14-
idna==2.7
15-
IP2Location==8.0.3
16-
isort==4.3.4
17-
lazy-object-proxy==1.3.1
18-
lxml==4.2.5
19-
maxminddb==1.4.1
20-
mccabe==0.6.1
21-
packaging==18.0
22-
pip-review==1.0
23-
pkginfo==1.4.2
24-
pycodestyle==2.4.0
25-
Pygments==2.3.0
26-
pylint==2.2.0
27-
pyparsing==2.3.0
28-
pyquery==1.4.0
29-
ratelim==0.1.6
30-
readme-renderer==24.0
31-
requests==2.20.1
32-
requests-toolbelt==0.8.0
33-
selenium==3.141.0
34-
six==1.11.0
35-
tqdm==4.28.1
36-
twine==1.12.1
37-
typed-ast==1.1.0
38-
typing==3.6.6
39-
urllib3==1.24.1
40-
webencodings==0.5.1
41-
wrapt==1.10.11
1+
astroid>=2.1.0
2+
autopep8>=1.4.3
3+
bleach>=3.0.2
4+
certifi>=2018.10.15
5+
chardet>=3.0.4
6+
Click>=7.0
7+
cssselect>=1.0.3
8+
decorator>=4.3.0
9+
dicttoxml>=1.7.4
10+
docutils>=0.14
11+
future>=0.17.1
12+
geocoder>=1.38.1
13+
geoip2>=2.9.0
14+
idna>=2.7
15+
IP2Location>=8.0.3
16+
isort>=4.3.4
17+
lazy-object-proxy>=1.3.1
18+
lxml>=4.2.5
19+
maxminddb>=1.4.1
20+
mccabe>=0.6.1
21+
packaging>=18.0
22+
pip-review>=1.0
23+
pkginfo>=1.4.2
24+
pycodestyle>=2.4.0
25+
Pygments>=2.3.0
26+
pylint>=2.2.0
27+
pyparsing>=2.3.0
28+
pyquery>=1.4.0
29+
ratelim>=0.1.6
30+
readme-renderer>=24.0
31+
requests>=2.20.1
32+
requests-toolbelt>=0.8.0
33+
selenium>=3.141.0
34+
six>=1.11.0
35+
tqdm>=4.28.1
36+
twine>=1.12.1
37+
typed-ast>=1.1.0
38+
typing>=3.6.6
39+
urllib3>=1.24.1
40+
webencodings>=0.5.1
41+
wrapt>=1.10.11

0 commit comments

Comments
 (0)