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