apl-mhd

lua script scrapy

Jul 6th, 2019
97
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function main(splash, args)
  2.   assert(splash:go(args.url))
  3.   assert(splash:wait(0.5))
  4.   assert(splash:runjs('document.querySelector("#proxylisttable_next a").click()'))
  5.   splash:set_viewport_full()
  6.   return {
  7.     html = splash:html(),
  8.     png = splash:png(),
  9.     har = splash:har(),
  10.   }
  11. end
RAW Paste Data