Cleanup Whitespaces and remove json from NotifyBot

This commit is contained in:
Jxck-S 2020-08-15 12:22:16 -04:00
parent 304c45cf21
commit 8ca4df54c8
6 changed files with 44 additions and 47 deletions

View File

@ -7,7 +7,6 @@ os.system('cls' if os.name == 'nt' else 'clear')
from geopy.geocoders import Nominatim
geolocator = Nominatim(user_agent="OpenSkyBot", timeout=5)
import json
import time
from colorama import Fore, Back, Style
import datetime

View File

@ -33,5 +33,3 @@ def pullOpenSky(TRACK_PLANE):
else:
plane_Dict = None
return plane_Dict, failed

View File

@ -11,7 +11,7 @@ def getSS(icao):
chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument('--headless')
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)
url = "https://globe.adsbexchange.com/?largeMode=2&hideButtons&hideSidebar&mapDim=0&zoom=9&icao=" + icao
browser.get(url)