Metadata-Version: 2.3
Name: swarmauri_tool_webscraping
Version: 0.6.1.dev6
Summary: Web Scraping Tool for Swarmauri
License: Apache-2.0
Author: Jacob Stewart
Author-email: jacob@swarmauri.com
Requires-Python: >=3.10,<3.13
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: beautifulsoup4 (>=4.10.0,<5.0.0)
Requires-Dist: swarmauri_base (>=0.6.1.dev6,<0.7.0)
Requires-Dist: swarmauri_core (>=0.6.1.dev6,<0.7.0)
Requires-Dist: swarmauri_standard (>=0.6.1.dev6,<0.7.0)
Project-URL: Repository, http://github.com/swarmauri/swarmauri-sdk
Description-Content-Type: text/markdown

![Swarmauri Logo](https://res.cloudinary.com/dbjmpekvl/image/upload/v1730099724/Swarmauri-logo-lockup-2048x757_hww01w.png)

<div align="center">

![PyPI - Downloads](https://img.shields.io/pypi/dm/swarmauri_tool_webscraping)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/swarmauri_tool_webscraping)
![PyPI - License](https://img.shields.io/pypi/l/swarmauri_tool_webscraping)
![PyPI - Version](https://img.shields.io/pypi/v/swarmauri_tool_webscraping?label=swarmauri_tool_webscraping&color=green)

</div>

---

# Web Scraping Tool

A web scraping tool that uses Python's requests and BeautifulSoup libraries to parse web content using CSS selectors.

## Installation

```bash
pip install swarmauri_tool_webscraping
```

## Usage

```python
from swarmauri.tools.WebScrapingTool import WebScrapingTool

# Initialize the tool
scraper = WebScrapingTool()

# Scrape content from a webpage
result = scraper(
    url="https://example.com",
    selector="h1"
)

# Access the extracted text
if "extracted_text" in result:
    print(result["extracted_text"])
else:
    print(result["error"])
```

## Want to help?

If you want to contribute to swarmauri-sdk, read up on our [guidelines for contributing](https://github.com/swarmauri/swarmauri-sdk/blob/master/contributing.md) that will help you get started.

