Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function use_crawlera(splash)
- splash:on_request(function (request)
- request:set_header("X-Crawlera-UA", "pass")
- request:set_header('X-Crawlera-Cookies', 'disable')
- request:set_proxy{'proxy.crawlera.com', 8010, username='APIKEY', password=''}
- end)
- end
-
-
- function main(splash)
- use_crawlera(splash)
-
- assert(splash:wait(20))
- return {
- html = splash:html(),
- png = splash:png(),
- har = splash:har(),
- }
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement