Jimut123 / jimutmap

API to get enormous amount of high resolution satellite images from satellites.pro quickly through multi-threading! create map your own map dataset. Bringing data to Humans.
https://jimutmap.readthedocs.io/
GNU General Public License v3.0
145 stars 17 forks source link

Auto access key fetching and refactor #4

Closed tigerhawkvok closed 3 years ago

tigerhawkvok commented 3 years ago

Pretty substantial refactor. Includes using Selenium powered by a local Chrome install (and Chrome auto driver install) to extract an access key at runtime.

Consolidates some loops and does basic input sanity checking. Makes the access key input less rigid via the @property.setter decorator.

Adds vNumber as an kwarg to get_img, since the old value started failing. Wanted to assume the new value might fail, too.

Made road asset pull optional, a more elegant CDN check, and doesn't mandatorily run all CDNs.

Added optional container_dir kwarg to __init__ to directly store images in subdirectories.

Added type hinting

Jimut123 commented 3 years ago

Lovely !