Metadata-Version: 2.4
Name: webscrape-ai-tool
Version: 1.0.0
Summary: Give your AI agent clean data from the web. One URL in, structured JSON out.
Author-email: Jialin <contentforge.press@outlook.com>
License: MIT License
        
        Copyright (c) 2026 Jialin
        
        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.
        
Project-URL: Homepage, https://github.com/contentforge-press/webscrape-ai
Project-URL: Repository, https://github.com/contentforge-press/webscrape-ai
Project-URL: Documentation, https://github.com/contentforge-press/webscrape-ai#readme
Project-URL: Bug Tracker, https://github.com/contentforge-press/webscrape-ai/issues
Keywords: web-scraping,ai-agent,data-extraction,llm,python,scraper
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.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: httpx>=0.25.0
Requires-Dist: beautifulsoup4>=4.12.0
Dynamic: license-file

# WebScrape AI

**Give your AI agent clean data from the entire internet.**

One line of code. Any URL. Structured JSON back. Built for AI agents.

## Why WebScrape AI?

AI agents need clean data to think. But the internet is messy.

- ✅ **One URL in, clean JSON out** - Title, main text, links, images, metadata
- ✅ **Built for AI agents** - No noise, just structured data
- ✅ **Handles anti-bot** - Real browser headers, follows redirects
- ✅ **Batch mode** - Scrape 100 URLs at once
- ✅ **Zero config** - Install, import, scrape

## Quick Start

```python
from webscrape_ai import scrape

# Scrape any URL
result = scrape('https://example.com')

print(result['title'])        # Page title
print(result['text'])          # Clean main text
print(result['links'])         # All links
print(result['images'])        # All images
```

## Output Format

```json
{
  "url": "https://example.com",
  "status": 200,
  "title": "Example Domain",
  "description": "This domain is for use in illustrative examples...",
  "text": "Example Domain\nThis domain is for use in illustrative examples...",
  "links": [
    {
      "text": "More information...",
      "url": "https://www.iana.org/domains/example"
    }
  ],
  "images": [],
  "metadata": {
    "og:title": "Example Domain",
    "og:description": "This domain is for use..."
  }
}
```

## Batch Scraping

```python
from webscrape_ai import scrape_batch

urls = [
    'https://example.com',
    'https://google.com',
    'https://github.com'
]

results = scrape_batch(urls)
```

## Use Cases

- **AI Agents** - Give your LLM real-time web data
- **RAG Systems** - Build knowledge bases from any website
- **Competitive Monitoring** - Track competitors' websites
- **Content Research** - Extract articles and blog posts
- **Data Pipelines** - Feed structured data to your workflows

## Installation

```bash
pip install -r requirements.txt
```

## Why Not Just Use BeautifulSoup?

Because you're an AI agent, not a web scraping expert.

WebScrape AI handles:
- ✅ Anti-bot detection (real browser headers)
- ✅ Redirect following
- ✅ Main content extraction (strips nav/footer/ads)
- ✅ Clean text output (no garbage)
- ✅ Structured JSON (ready for LLMs)

You just need one thing: clean data. We handle the rest.

## Star History

If this helps your AI agent, please star the repo! ⭐

## License

MIT
