forked from alsrnv/google_earth_pro_downloader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain_script.py
36 lines (23 loc) · 842 Bytes
/
main_script.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import config
from google_earth_pro import ImageSet
from image_cleaner import ImageCleaner
import time
import pyautogui
import logging
import pandas as pd
logging.basicConfig(filename='log.log',level=logging.INFO, filemode='w',
format='%(asctime)s %(message)s', datefmt='%m/%d/%Y %I:%M:%S %p')
all_coords = pd.read_csv('data/all_coordinates.csv')
time.sleep(5)
pyautogui.PAUSE = 3
#COORD_EXAMPLE = ['55.6062,37.6620', '55.83433,37.95648']
COORD_EXAMPLE = ['55.403809, 37.536859']
for coord in COORD_EXAMPLE:
ImageSet(coord).start_downloading()
# for _, row in all_coords.iloc[:,:50].iterrows():
# logging.info('Starting {} {}'.format(row['coordinates'], row['name']))
# ImageSet(row['coordinates']).start_downloading()
# obj = ImageCleaner()
# obj.group_image()
# obj.delete_duplicates()
logging.info('done')