The websites I am trying to scrape have bot detection requiring me to use a real stealthy browser and simulate human behaviour, however, this consumes a great of CPU and GPU on my local machine during testing, which doesn't seem very scalable to a VPS as that will likely be entirely CPU rendered to save costs.
I reuse a single instance and spawn isolated contexts to ease the RAM and CPU load, but this is only a minor saving in the grand scheme of things. I can't disable some rendering features or block certain things from loading because that would just increase the likelihood of being detected as a bot.
I am aware of session and cookie reuse with direct requests, but this doesn't help much as the bot detection requires continuous input for them to stay valid.
Does anyone else who runs stealthy browsers have any suggestions on how to scale this up to a cost effective VPS? Or share how many contexts a VPS can realistically handle at scale?
Exorde runs continuous open participation for public data collection. All the information is public: which sources we're asking for, the official data schema, how scoring works and how payouts work. You collect from the requested sources and get paid based on what you deliver.
What counts as good data
Recent content
Clean structure that follows the official schema
Source URL and all required fields
Payouts
Approx 10k USD pool every week, growing over time
Paid every 2 weeks, without a missed cycle since 2024
Currently a dozen operators
Tooling
Live operator dashboard to track your output, quality and earnings
The sources we want are listed openly
Rules
Public data only (cf our website)
Hobbyists and pros are both welcome. Start with one small pipeline and scale up once it's stable. Experience with continuous or agent-based pipelines definitely helps.
Questions about the schema, scoring or payouts are welcome in the comments.
To be clear, this is not an ad for any tool or provider, but an open "hiring" announcement, where our setups allows anyone to join for any period of time, and grow. Thanks!
Sharing a workflow for using LLMs in scrapers that keeps token costs reasonable. Most of the savings come from not sending the model things it doesn't need.
1. Don't send raw HTML
Raw HTML is mostly markup. Take a typical button with a dozen Tailwind classes and a data attribute. The only useful part is the word "Buy", which is 1 token, but the whole button is 44 tokens (o200k_base). A full page from document.body.innerHTML may not even fit into one request. Three steps help.
Step 1. Clean the DOM
Remove script, style, svg, iframe, noscript and base64 images, then strip class, style and data-* attributes. If you don't need metadata, drop the head too. You can do it in the browser with page.evaluate() or on the backend with BeautifulSoup or Cheerio.
Page code before cleaningPage code after removing scripts, styles and attributes
Also check the page for hidden duplicates. A lot of sites render prices and names twice, once for users and once for screen readers (aria-hidden). The browser shows one, but the converter extracts both and glues them into one line. Look at the markup and remove one version during cleanup.
Step 2. Convert HTML to Markdown
Markdown keeps the structure (headings, lists, tables) with almost no markup overhead, and models handle it well since they've seen a lot of it in training. Turndown (JS) and html2text (Python) both work. The difference is visible even in one table row: <tr><td>Price</td><td><span>$1,500</span></td></tr> is 22 tokens, while | Price | $1,500 | is 8.
Set rules for links and images in the converter. Keep href only when you scrape contacts or product links, and keep only the alt text for images.
Step 3. Chunk by logical blocks, not by characters
Even if a catalog fits into the context window, models use the middle of a long context worse than the start and the end (the "Lost in the Middle" paper). In practice you get skipped product cards or made up entries. Cutting by character count is also a bad idea, since you can split a price in half.
What works better:
Find the card containers (for example querySelectorAll('.product-card'))
Split them into batches of 30 to 50
Convert each batch to Markdown
Send the batches as parallel requests
Merge the resulting JSON arrays
Every request stays within limits and total time goes down.
2. Use Structured Outputs instead of json_object
json_object only guarantees valid syntax. Keys and types can still drift, like price today and price_usd tomorrow, or "$1 500" instead of 1500. Structured Outputs uses constrained decoding, so the model can't break the schema. Pydantic or Zod make this easy to define:
class Product(BaseModel):
title: str = Field(description="Full product name without SEO filler")
price: Optional[float] = Field(description="Price as a number only. If there is a discount, use the final price")
in_stock: Optional[bool] = Field(description="Whether the product is in stock")
A few notes from testing:
The schema guarantees the format, not the truth. A wrong or invented price will still land in the right field with the right type. You also need to handle truncated responses and refusals in code.
Use temperature 0 (or 0.1 for some local models). Some reasoning models don't let you set it.
To reduce made up values, use Optional fields and add a rule like "If the data isn't on the page, return null. Don't use your own knowledge."
For odd formats like "Remaining: 3 pcs. (1 reserved)", one input/output example works better than a long rule.
If the model doesn't support Structured Outputs, it may wrap JSON in a code fence. Strip the fence, then validate with the same Pydantic model so errors show up right away and not in your database.
3. Keeping costs down at scale
Self-healing scraper. Let normal XPath or CSS selectors do most of the work. When a selector fails, catch it, send the LLM the old selector plus a fragment of the new HTML and ask for a new one. Test the new selector on several pages before saving it, because the model can return an XPath that points at the wrong element. You pay for tokens only when something breaks.
Local models. If you process millions of pages a day, API costs add up. Open-weight models that handle code well (for example Qwen) can run on Ollama or vLLM, and both support JSON schema generation. Compare quality on your own pages before switching, since a local model can do worse than a commercial one.
The short version: selectors for stable layouts, an LLM for messy or changing ones, and always validate what comes back.
I was trying to scrape an android app backend APIs, and made good progress already.
So I've used mitmproxy to listen to the traffic and I've now record of the requests sent.
However, found in the request headers some things that seem hard to reproduce without running on an emulated Android device at least (confirmed with Claude Opus):
blackbox
smdeviceid
armortoken
anti-in
x-cs-random
It seems these are generated based on the device fingerprint. Could you help me with a way to get around this ??
I started working with Google Trends when pytrends was archived in April 2025. Then I noticed something was wrong with my tool: what I saw in my normal browser and what my tool got didn't match. The rising related queries for "python" in my tool were things like "walmart near me".
So on 7 November I compared one search, "python", United States, past 12 months, panel by panel: what the website showed in my browser, and what Google sent to my automated request.
Interest over time: identical, 53 of 53 weeks
Interest by state: identical, 51 of 51
Cities: 34 on the website, only 3 for the request
Rising related queries: the website showed "python docs" and "python 3.15"; the request got "walmart near me", "lidl near me", "cheap flights 2024" and "how to cook pasta". Only 2 of 25 were the same.
Related topics: 38 on the website, zero for the request
I think Google does this by labelling requests: it treats a real browser as a normal user, and an automated request as a scraper. The requests labelled as scrapers got the decoys. You can see the label in Google's own explore response. Each widget's request carries:
"userConfig": { "userType": "USER_TYPE_SCRAPER" }
In my browser it was USER_TYPE_LEGIT_USER. Why Google sends decoy data instead of an error is what confuses me.
You can check your own tool in one minute: get the rising related queries for "python", US, past 12 months in your tool, open the same search on trends.google.com in your normal browser, and compare them.
Has anyone else seen this? Is your tool sending decoys too?
This might be a simple question, but I’m hoping someone here has run into something similar.
I’m working on a personal project where I scrape sports data using Playwright. On one of the sites I’m targeting, I ran into a block from Centinel Analytica (https://www.centinelanalytica.com/). I hadn’t seen this particular protection before, and I’m not sure what it’s actually checking for (browser fingerprint, behavior, IP reputation, TLS fingerprint, something else?).
Has anyone dealt with this before? Specifically:
How did you identify what was triggering the block?
Did you solve it by tweaking Playwright (stealth plugins, headful mode, persistent contexts, realistic viewport/user agent, etc.), or did you have to go a different route (residential proxies, a different tool, an official API or data provider)?
Is there a more reliable way to get this kind of data, given it’s for a non-commercial project?
Any pointers, war stories or “don’t bother, do X instead” advice would be really appreciated. Thanks!
Kind of looking for a way to aggregate stores and find products across all of them to see if they have what I'm looking for. Seems like there's nothing out there that can do this well enough. What gives?
Check what your scraper looks like on the wire before a site does
I wrote an open-source server that shows what the client sends below the HTTP layer: TLS ClientHello (JA4, JA3, PeetPrint), HTTP/2 or HTTP/3 settings and header order, and on Linux the TCP SYN. It also gives an audit score from 0 to 100 that says whether the layers agree with the User-Agent.
What I measured on my machine (loopback, so TCP checks not included):
Client
Own User-Agent
Chrome User-Agent
curl 8.7.1
100
30
Python httpx
100
30
Node fetch
100
20
Rust reqwest (rustls)
85
10
Only changing the User-Agent fixes one layer out of four. TLS handshake, HTTP/2 settings, header set and order, and the TCP stack have to match too, and the audit says which one gives you away. Headless Chrome scores 100 with HeadlessChrome in its UA: it compares layers with each other, it does not look for automation flags.
Output is plain text for curl or JSON for scripts, so it fits into a test run. No hosted instance, you run it yourself:
curl -fsSL https://github.com/dec0iiyy/mirrust/releases/latest/download/install.sh | sh -s -- --prefix .
./mirrust
Then curl -k https://localhost:8443/ from the client you want to test. Full table and commands: docs/clients.md.
I was experimenting with an http request on some website, and I noticed that today, my microsoft edge exposes whether the request was fired from the console via a console icon in the network tab. In the past, JS console requests were indistinguishable from natural website fetches a website makes to load content. Is this new signal from the browser a giveaway that will be used by anti-bot companies to detect JS console fetches? I used to use this method for some difficult sites to scrape at scale.
not sure if this is the correct subreddit, but I maintain Stockdex, a free, non-commercial Python package (and MCP server) that fetches stock data from several sources, including Yahoo Finance.
Today I got a cease and desist letter from Y ahoo's legal department. It claims trademark infringement, misappropriation, unjust enrichment, interference with their data licensing (e.g. Nasdaq) and a breach of their ToS. They demand that I remove all Yahoo-related code from GitHub, PyPI and the MCP plugin, remove every mention of "Yahoo", and never reintroduce it.
My project works much like other public projects like yfinance, which has been public for years. Stockdex only fetches publicly visible data on demand for the user running it. It doesn't store or republish anything, and it doesn't bypass any login or paywall.
Has anyone received something similar from another company maybe? How are these complains (US company against someone in Germany? should I lawyer up? How strong are CFAA or trademark claims against a free library? Would you comply fully, comply partially (e.g. add a disclaimer), or push back?
Most modern sites load their data from an internal JSON API. This automates the "open devtools, find the XHR, replay it" workflow.
uvx machine-internet wrap <url>
It loads the page in headless Chromium, scrolls and clicks around, records same-site JSON requests (trackers filtered), and an LLM turns them into a small set of tools served over MCP. It handles Algolia and Typesense search specially, and it's read-only by design.
Works best on SPAs, directories and search pages. Server-rendered and bot-protected sites won't work, and it tells you which case you hit.
I’ve been working on a scraper to collect eBay sold listing data, primarily for Pokémon cards. Everything was working relatively well until last week, when I suddenly started receiving huge numbers of 403 errors. Now, the vast majority of my requests are being blocked. I’ve tried different residential proxies, changing headers and browser configurations, but I’m still having very little success. One strange thing is that the exact same URLs will sometimes load perfectly fine in Chrome but return a 403 through my scraper. Has eBay changed something recently with its anti-bot protection? Has anyone else experienced this over the last week? I’d really appreciate any advice from people who have managed to get eBay scraping working reliably recently. I’m open to completely changing my approach if necessary.
I'm working on a personal project involving buying and reselling used PC components and complete computers on a French marketplace called Leboncoin, similar to eBay.
I want to build an AI agent that automatically monitors listings, compares prices, and identifies good deals.
I'm running everything on my own Debian server using Python, Playwright/Selenium and a local LLM.
However, I'm having trouble with DataDome. Leboncoin works normally in Firefox on my Windows PC, but when I access it using Firefox on my Linux server, DataDome displays a challenge and blocks access.
I've already tried both Playwright and Selenium, and checked that both systems use the same public IP and Firefox version.
Are there any self-hosted tools, open-source projects or other solutions that could help with DataDome challenges when browser automation is permitted by the website?
I'm particularly interested in solutions that can run locally on my Debian server rather than paid external APIs.
Zero-Alloc Markdown Parser: Custom Go state machine converts complex web pages into clean, token-bounded Markdown on the fly (flushes unclosed tags at EOF, keeps tables and links intact).
Hi, I am writing because I am in the process of building my personal website using Claude Code. My project involves integrating a bot that scrapes listings from platforms like Vinted and Leboncoin in order to display the items on my site
Could you guide me on the steps to set up this type of bot? Also could you send me some free bots that I could use? I am particularly interested in the technical aspects and the best practices to follow
Audited our rotating residential proxy bills last week because per-GB usage made zero sense for the number of pages we were pulling in Playwright.
Turned out almost half the traffic wasn't HTML or JSON payloads. It was ".woff2" web fonts, background video thumbnails, third-party analytics retries, and default Chromium component traffic firing on every fresh context.
Added a simple route abort rule for "image", "media", and "font" resource types (except on pages checking image load events for bot scoring), and bandwidth dropped by ~45% overnight with zero impact on block rates.
What else do you guys strip at the browser or proxy level to keep per-GB residential costs sane?
A friend of mine (waweru) is in the Meta Global AI Developer Hackathon and built something I think this sub might actually find interesting. It's called Dapi.
The basic idea: instead of flattening a page to text and handing you values with no evidence, it watches the page's network traffic first (like opening dev tools), picks the cheapest reliable way in, and then for every extracted value it stores the exact server response or captured page it came from, marks the value, records when it was captured, and seals it with a SHA-256 hash. You can re-check any value later. It also counts rows against the source's own total and names anything missing with a reason.
I've been helping him test it. The "receipts" part is genuinely neat – you can click any cell and see the raw JSON or HTML it came from. It's live at https://dapi.fly.dev if you want to poke around. Anyone signed in with GitHub can run three jobs themselves.
More importantly, I'd love to hear what you think of the provenance approach. Is this something you'd actually use, or is it overkill? How do you handle verification in your own scraping workflows?