Skip to content

Update trackout.py#1

Open
ArapKBett wants to merge 1 commit intoabaykan:masterfrom
ArapKBett:patch-1
Open

Update trackout.py#1
ArapKBett wants to merge 1 commit intoabaykan:masterfrom
ArapKBett:patch-1

Conversation

@ArapKBett
Copy link

Updated the script to Python 3.

Replaced urllib2 with requests for better handling of HTTP requests.

Added error handling for network issues and invalid IP addresses.

Split the code into functions for better readability and maintenance.

Added a function to calculate the distance between two IP addresses using the 'geopy' library.

 Updated the script to Python 3.

Replaced `urllib2` with `requests` for better handling of HTTP requests.

Added error handling for network issues and invalid IP addresses.

Split the code into functions for better readability and maintenance.

Added a function to calculate the distance between two IP addresses using the 'geopy' library.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant