ip2location / ip2trace-python Goto Github PK
View Code? Open in Web Editor NEWPython tool to traceroute with IP geolocation information, such as country, region, city, isp and many more.
License: MIT License
Python tool to traceroute with IP geolocation information, such as country, region, city, isp and many more.
License: MIT License
[root@localhost ]# ip2trace -p 116.122.36.54 -d IP-COUNTRY-REGION-CITY-ISP.BIN -t 30
Traceback (most recent call last):
File "/usr/local/bin/ip2trace", line 11, in <module>
load_entry_point('IP2Trace==2.1.7', 'console_scripts', 'ip2trace')()
File "/usr/local/lib/python3.6/site-packages/ip2trace.py", line 482, in main
traceroute(destination_server, database, max_hops, output, all)
File "/usr/local/lib/python3.6/site-packages/ip2trace.py", line 148, in traceroute
t = Traceroute(destination_server, database, ttl, output, all)
File "/usr/local/lib/python3.6/site-packages/ip2trace.py", line 174, in __init__
self.destination_domain_name = ip_to_domain_name(destination_server)
File "/usr/local/lib/python3.6/site-packages/ip2trace.py", line 97, in ip_to_domain_name
return socket.gethostbyaddr(hostname)
socket.herror: [Errno 1] Unknown host
[root@localhost ]#
I receive:
$ python ip2trace.py
File "ip2trace.py", line 140
print(" {} ".format(self.ttl), end="")
^
SyntaxError: invalid syntax
Thank you,
Riccardo
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.