<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Fawad</title>
    <description>The latest articles on DEV Community by Fawad (@fawadss1).</description>
    <link>https://dev.to/fawadss1</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4062631%2Fdc50e60a-30dc-4379-b2c5-f8f730d457ef.png</url>
      <title>DEV Community: Fawad</title>
      <link>https://dev.to/fawadss1</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/fawadss1"/>
    <language>en</language>
    <item>
      <title>scrapy-stealth – Layered anti-bot engine for Scrapy (HTTP stealth HTTP browser)</title>
      <dc:creator>Fawad</dc:creator>
      <pubDate>Tue, 04 Aug 2026 13:55:10 +0000</pubDate>
      <link>https://dev.to/fawadss1/scrapy-stealth-layered-anti-bot-engine-for-scrapy-http-stealth-http-browser-2beb</link>
      <guid>https://dev.to/fawadss1/scrapy-stealth-layered-anti-bot-engine-for-scrapy-http-stealth-http-browser-2beb</guid>
      <description>&lt;p&gt;I built this after repeatedly hitting bot detection (Akamai Bot Manager, Cloudflare) while scraping product catalogs from e-commerce/distributor sites for data pipelines I run — RS Components, DigiKey UK, Euspares, and others.&lt;/p&gt;

&lt;p&gt;The core problem: full browser automation works against strong bot detection but is slow and resource-heavy on every request. Plain HTTP is fast but gets blocked immediately on protected sites. Most tools pick one and stick with it.&lt;/p&gt;

&lt;p&gt;scrapy-stealth escalates through three layers instead:&lt;/p&gt;

&lt;p&gt;Plain HTTP — for sites with no real protection&lt;br&gt;
Stealth HTTP — fingerprint/header spoofing for moderate protection&lt;br&gt;
Full browser automation — only as a last resort, for heavy protection&lt;/p&gt;

&lt;p&gt;It only pays the browser-automation cost when the cheaper layers actually fail.&lt;/p&gt;

&lt;p&gt;A few bugs along the way that might be interesting to others working on similar tooling:&lt;/p&gt;

&lt;p&gt;An event loop teardown race on Windows that only reproduced in production, never locally&lt;br&gt;
Websocket listener races causing intermittent hangs during browser automation&lt;br&gt;
A recursion bug specific to headless browser automation on newer Python versions (headful was the stable workaround)&lt;br&gt;
Temp browser profile accumulation on long-running jobs&lt;/p&gt;

&lt;p&gt;It's MIT licensed, in beta (0.6.x), on PyPI: pip install scrapy-stealth&lt;/p&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/fawadss1/scrapy-stealth" rel="noopener noreferrer"&gt;https://github.com/fawadss1/scrapy-stealth&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Happy to answer questions about the architecture or any of the debugging above.&lt;/p&gt;

</description>
      <category>automation</category>
      <category>opensource</category>
      <category>python</category>
      <category>webscraping</category>
    </item>
  </channel>
</rss>
