Cleanup Whitespaces and remove json from NotifyBot
This commit is contained in:
parent
aa9953c6b9
commit
a2a249086c
|
@ -7,7 +7,6 @@ os.system('cls' if os.name == 'nt' else 'clear')
|
||||||
from geopy.geocoders import Nominatim
|
from geopy.geocoders import Nominatim
|
||||||
geolocator = Nominatim(user_agent="OpenSkyBot", timeout=5)
|
geolocator = Nominatim(user_agent="OpenSkyBot", timeout=5)
|
||||||
|
|
||||||
import json
|
|
||||||
import time
|
import time
|
||||||
from colorama import Fore, Back, Style
|
from colorama import Fore, Back, Style
|
||||||
import datetime
|
import datetime
|
||||||
|
|
|
@ -33,5 +33,3 @@ def pullOpenSky(TRACK_PLANE):
|
||||||
else:
|
else:
|
||||||
plane_Dict = None
|
plane_Dict = None
|
||||||
return plane_Dict, failed
|
return plane_Dict, failed
|
||||||
|
|
||||||
|
|
2
defSS.py
2
defSS.py
|
@ -11,7 +11,7 @@ def getSS(icao):
|
||||||
chrome_options = webdriver.ChromeOptions()
|
chrome_options = webdriver.ChromeOptions()
|
||||||
chrome_options.add_argument('--headless')
|
chrome_options.add_argument('--headless')
|
||||||
chrome_options.add_argument('window-size=800,800')
|
chrome_options.add_argument('window-size=800,800')
|
||||||
# chrome_options.add_argument('--no-sandbox') # required when running as root user. otherwise you would get no sandbox errors.
|
#chrome_options.add_argument('--no-sandbox') # required when running as root user. otherwise you would get no sandbox errors.
|
||||||
browser = webdriver.Chrome(options=chrome_options)
|
browser = webdriver.Chrome(options=chrome_options)
|
||||||
url = "https://globe.adsbexchange.com/?largeMode=2&hideButtons&hideSidebar&mapDim=0&zoom=9&icao=" + icao
|
url = "https://globe.adsbexchange.com/?largeMode=2&hideButtons&hideSidebar&mapDim=0&zoom=9&icao=" + icao
|
||||||
browser.get(url)
|
browser.get(url)
|
||||||
|
|
Loading…
Reference in New Issue