Metadata-Version: 2.2
Name: ai-gemini-scraper
Version: 0.1.1
Summary: A simple package for scraping websites and generating responses using Google's Generative AI.
Home-page: https://github.com/cyruszevirus/ai-scraper
Author: Cyrille Gattiker
Author-email: cyrille.gattiker@gmail.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: selenium
Requires-Dist: google-generativeai
Requires-Dist: urllib3
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# ai-scraper

A simple package for scraping websites and generating responses using Google's Generative AI.

## Features

- Scrapes a webpage using Selenium with headless Chrome.
- Passes scraped HTML into a Generative AI model along with custom instructions.
- Returns the AI-generated response.

## Installation

You can install the package via pip (after publishing to PyPI):

bash
pip install ai-scraper

## Usage example

from ai_scraper import scrape

response_text = scrape(
    google_api_key="YOUR_GOOGLE_API_KEY",
    url="https://webscraper.io/test-sites/e-commerce/allinone",
    instructions="Return all products names, in JSON."
)
print(response_text)
