crawlex 1.0.4

Stealth crawler with Chrome-perfect TLS/H2 fingerprint, render pool, hooks, persistent queue
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
-- Live SPA flow driven from Lua: click button, wait for the post-pushState
-- selector, then take an element screenshot. Asserted from the Rust side.
--
-- The hook fires during the render's AfterLoad stage — the page is already
-- navigated and idle, so helpers see the initial DOM.
function on_after_load(ctx)
  -- Make sure the button is actually present before we click. `page_wait_for`
  -- is the Playwright-style alias; same as `page_wait`.
  page_wait_for("#go", 3000)
  page_click("#go")
  -- pushState flips the view in; give it up to 5s.
  page_wait_for("#dashboard", 5000)
  return "continue"
end