makhidkarun / traveller_pyroute

Traveller trade route generator
MIT License
14 stars 5 forks source link

PyRoute/downloadsec.py should use Requests library #60

Open tjoneslo opened 1 year ago

tjoneslo commented 1 year ago

Requests is a library for managing the http(s) requests better than using urllib directly:

https://requests.readthedocs.io/en/latest/

The reason for the change is to better manage the retry requests for the downloader. If retry logic is important, let's do it correctly:

https://stackoverflow.com/questions/15431044/can-i-set-max-retries-for-requests-request