Log tar1090 url.
This commit is contained in:
parent
e06f82a73f
commit
e910eddc4a
@ -63,10 +63,12 @@
|
||||
(if-let [user-agent (:user-agent options)]
|
||||
(.setUserAgent page user-agent))
|
||||
(log-debug "Navigating")
|
||||
(p/all [(.waitForNavigation page)
|
||||
(.goto page
|
||||
(gstring/format "https://tar1090.adsbexchange.com/?icao=%s&noIsolation&hideButtons&hideSidebar&monochromeMarkers=ffff55&monochromeTracks=010101&outlineColor=505050&zoom=14" icao)
|
||||
(clj->js {:referer "https://adsbexchange.com/"}))])
|
||||
(let [url (gstring/format "https://tar1090.adsbexchange.com/?icao=%s&noIsolation&hideButtons&hideSidebar&monochromeMarkers=ffff55&monochromeTracks=010101&outlineColor=505050&zoom=14" icao)]
|
||||
(log-info "Getting screenshot at url %s" url)
|
||||
(p/all [(.waitForNavigation page)
|
||||
(.goto page
|
||||
url
|
||||
(clj->js {:referer "https://adsbexchange.com/"}))]))
|
||||
(timeout 3000)
|
||||
(p/all [(.type (.-keyboard page) "l")
|
||||
(timeout 1000)])
|
||||
|
Loading…
Reference in New Issue
Block a user