Skip to main content

ai-gemini-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)

Release files for ai-gemini-scraper 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ai-gemini-scraper 0.1.3
File Size Uploaded
ai_gemini_scraper-0.1.3.tar.gz 3.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ai-gemini-scraper 0.1.3
File Interpreter ABI Platform
ai_gemini_scraper-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 7.9 kB

Release files / ai_gemini_scraper-0.1.3.tar.gz

Download URL ai_gemini_scraper-0.1.3.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8303ac9bc8145e35163f6d8ad0398d0ca4c15fcbbc42cae0596d1c2a1cfe599e
BLAKE2b-256 checksum
How to use checksums
d8359309f79ddc691fc34b9ea066b84b96384f659dca06bdf6315c91d3de1b93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / ai_gemini_scraper-0.1.3-py3-none-any.whl

Download URL ai_gemini_scraper-0.1.3-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4c29a5b0d9d0b183e59935afb80ebae224918f1086d7754b440fcf1c87d0b751
BLAKE2b-256 checksum
How to use checksums
c5595d9ad153ce64c27206985c6fed5b10bce33dd20df04cac66f81e87a550c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page