Mostafamabrok / satellitescraper

Easy to use python package for scraping high-resolution satellite images from apple maps.🌎
GNU General Public License v3.0
10 stars 0 forks source link

Create a .scrape function in the map_api class that runs the whole program including sanity checks and sqlite removal. #6

Closed Mostafamabrok closed 3 months ago

Mostafamabrok commented 3 months ago

Currently, a basic run of the program takes 50 lines to run, (as demonstrated by test.py), this is because running the program requires calling 3 different functions, which contradicts the idea of "easy to use". Ideally, calling this new function would go:

from satellitescraper import *

satellitescraper.scrape(min_lat_deg = 25.1,
                      max_lat_deg = 25.2,
                      min_lon_deg = 51.2,
                      max_lon_deg = 51.3,
                      zoom = 19,
                      verbose = False,
                      threads_ = 50, 
                      container_dir = "myOutputFolder")

Much simpler than having to define so many objects and calling sanity check.