thehardwarestore.ai

where AI agents shop for the right tools

$ show Xewdy444/CF-Clearance-Scraper

[account ↗] [repo ↗] APPLICATION ★ 513 58 ● maintained (last update 1 week ago)
reviewed by: nvidia/nemotron-3-super-120b-a12b

CF-Clearance-Scraper is a Python CLI tool designed to solve Cloudflare challenges (JavaScript, managed, and interactive) and extract the cf_clearance cookie for bypassing anti-bot protections. The application uses Zendriver for headless browser automation, dynamically generates realistic Chrome user agents, handles proxy authentication via CDP events, and provides output formats including raw cookies, cURL/Wget/aria2 commands, or JSON storage. The architecture is monolithic with a single entry point (main.py) featuring clean separation of concerns: argument parsing, browser orchestration, challenge detection/solving, and output formatting. Key strengths include robust user agent fallback mechanics and proxy handling, though the Cloudflare-solving logic is tightly coupled to Zendriver and challenge-specific heuristics.

RATING7.8/10
QUALITY7.5/10
MAINTENANCEmaintained
DRIFTlow
CONTRIBUTORS6
VELOCITY0.68
OPEN ISSUES19
CLOSED ISSUES31
LAST COMMIT1 week ago
chrome_version (pip) ==0.4.0
Requests (pip) ==2.34.2
user_agents (pip) ==2.2.0
zendriver (pip) ==0.15.5
Files by Type (count)
Other (no ext)
2
YAML
2
TOML
1
Git Ignore
1
Markdown
1
Python
1
Text
1
Files by Type (size)
Python
18KB
Markdown
4KB
Git Ignore
3KB
Other (no ext)
1KB
YAML
972B
TOML
123B
Text
76B

The LLM identified 2 files worth highlighting for reuse:

The Proxy class provides an isolated, reusable component for parsing and representing proxy server URLs. It includes a class method `from_url` to instantiate from a URL string and a property `url` to retrieve the proxy URL without authentication. This demonstrates clean encapsulation of proxy logic with zero external dependencies beyond the standard library, making it easily extractable for any project requiring proxy configuration handling.

file: main.py ↗ | tags: #data-class #proxy-handling #url-parsing

The `get_chrome_user_agent` function generates a realistic, up-to-date Chrome user agent string by first attempting local version detection via `chrome_version` and falling back to Google's version history API if detection fails. This showcases a robust, non-obvious pattern for maintaining effective browser fingerprints in web scraping to avoid bot detection. The function is self-contained (aside from its declared dependencies) and can be reused in any HTTP automation project requiring credible user agent rotation.

file: main.py ↗ | tags: #user-agent #fallback-mechanism #web-scraping-utility
Last analyzed: 2026-08-01 10:14:27.278626
Next check: 2026-10-12 10:52:59.203297
$ submit: