Mirror of https://github.com/Jxck-S/plane-notify
This is the backend to ElonsJet and other bots
acasads-badsbadsbexchangeadsbxairportemergency-squawklandopenskyopensky-apiopensky-networkplaneresolutionadviosrysquawktakeofftcas
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
599 B
13 lines
599 B
from selenium import webdriver |
|
import time |
|
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. |
|
browser = webdriver.Chrome(options=chrome_options) |
|
url = "https://globe.adsbexchange.com/?largeMode=2&hideButtons&hideSidebar&mapDim=0&zoom=9&icao=" + icao |
|
browser.get(url) |
|
time.sleep(30) |
|
browser.save_screenshot("map.png") |
|
browser.quit() |