Metadata-Version: 2.4
Name: chuscraper
Version: 0.16.1
Summary: A blazing fast, async-first, undetectable webscraping/web automation framework
Project-URL: Homepage, https://github.com/ToufiqQureshi/chuscraper
Project-URL: Repository, https://github.com/ToufiqQureshi/chuscraper
Project-URL: Issues, https://github.com/ToufiqQureshi/chuscraper/issues
Author-email: Toufiq Qureshi <toufiq@example.com>
License: MIT License
        
        Copyright (c) 2024 Toufiq Qureshi
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Internet :: WWW/HTTP :: Browsers
Requires-Python: >=3.10
Requires-Dist: asyncio-atexit>=1.0.1
Requires-Dist: beautifulsoup4>=4.12.0
Requires-Dist: deprecated>=1.2.14
Requires-Dist: emoji>=2.14.1
Requires-Dist: grapheme>=0.6.0
Requires-Dist: mss>=9.0.2
Requires-Dist: websockets>=14.0
Description-Content-Type: text/markdown

# Chuscraper 🚀

**The Undetectable Web Scraping Framework**

`chuscraper` is a powerful, async-first web automation library designed to bypass the toughest anti-bot protections (Akamai, Cloudflare, Datadome, etc.). It is built on top of the Chrome DevTools Protocol (CDP) and includes advanced stealth techniques out-of-the-box.

---

## 🔥 Key Features

- **🛡️ Undetectable Stealth Mode**:
  - Automatically hides `navigator.webdriver`.
  - Mocks `navigator.permissions`, `navigator.plugins`, and `navigator.mimeTypes`.
  - **Pro Features**:
    - **Canvas & WebGL Noise**: Randomizes fingerprinting to avoid tracking.
    - **Hardware Spoofing**: Simulates high-end PC specs (8 Cores, 8GB RAM).
    - **Smart UA Rotation**: Rotates modern Desktop User-Agents per session.

- **🔒 Built-in Proxy Auth**:
  - Direct CDP-based proxy authentication (no extensions required).
  - Supports `http://user:pass@host:port` format seamlessly.
  - Bypasses proxy authentication popups automatically.

- **🌍 Timezone & Geolocation**:
  - Automatically overrides system timezone to match your proxy (e.g., `Asia/Kolkata`).

- **⚡ Blazing Fast**:
  - Uses specific CDP commands to avoid bloat.
  - Lightweight and optimized for high-concurrency scraping.

## 📦 Installation

```bash
# Clone the repo
git clone https://github.com/ToufiqQureshi/chuscraper.git
cd chuscraper

# Install dependencies (if any specific ones, otherwise uses standard libs)
pip install -e .
```

## 🚀 Quick Start

### 1. Basic Usage (Stealth + Proxy)

```python
import asyncio
import chuscraper

async def main():
    # Start browser with Stealth Mode and Proxy
    browser = await chuscraper.start(
        stealth=True,
        proxy="http://user:pass@proxy.example.com:8080",
        timezone="Asia/Kolkata"  # Match your proxy location
    )

    page = await browser.get("https://whoer.net")
    
    # Verify IP and camouflage
    print(f"Title: {await page.title}")
    
    await asyncio.sleep(10)
    await browser.stop()

if __name__ == "__main__":
    asyncio.run(main())
```

## 🛠️ Configuration

| Argument | Type | Description |
| :--- | :--- | :--- |
| `stealth` | `bool` | Enable advanced anti-detection (Canvas noise, Hardware mocks, UA rotation). |
| `proxy` | `str` | Proxy URL in `scheme://user:pass@host:port` format. |
| `timezone` | `str` | Override browser timezone (e.g., `"Asia/Kolkata"`). |
| `headless` | `bool` | Run in headless mode (default: `False`). |

## 🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

## 📄 License

MIT License
