Can you scrape Quotes to Scrape?
We asked 12 open source scraping tools to fetch quotes.toscrape.com/js, and counted a result as usable only if the page held quote text and author after JavaScript rendering. We tested public pages only, and this page is not legal advice.
Tested · How we test
Comparison
Code to start with
URL = "https://quotes.toscrape.com/js/"
# first: lightpanda serve --host 127.0.0.1 --port 9222
from playwright.sync_api import sync_playwright
with sync_playwright() as p:
browser = p.chromium.connect_over_cdp("ws://127.0.0.1:9222")
page = browser.new_context().new_page()
page.goto(URL, wait_until="domcontentloaded")
page.wait_for_timeout(2000)
html = page.content()What came back to Lightpanda
HTTP 200 · 8,985 bytes of HTML · 1,495 characters of visible text
Our check found these words on the page: the world as we have created it, albert einstein. It found no bot-check phrases, such as “verify you are human”.
All 12 results
Click a column to sort. Time and memory show only for tools that got the page.
Got the pageContent missingRefused or blockedOur check failed
Notes
- The site answered without the content we asked for. It probably draws that content with JavaScript after the page loads.
How we tested
Each tool fetched the page once, in a fresh session, with no proxy. Tools without a browser send one HTTP request and read the HTML that comes back. Browser tools load the page and run its JavaScript. Each tool's script below shows the exact settings we used. We have not yet tested residential proxies, paid scraping APIs or many pages in a row. Our full method
Scripts and results files
Each tool's results file holds every attempt from this run, with the HTTP status, the time, the memory and what our check found. The pages the tools fetched are not published.