A semantic web scraping and summarization toolkit.
Project description
vibescraper
vibescraper is a Python toolkit for semantic web scraping, chunk-based embedding, and AI-powered summarization. It enables you to process web page content, generate embeddings for content chunks, perform similarity searches, and summarize relevant information using AI models.
How it works
- Web Search: Searched the web using search engine API.
- Semantic Chunking: Extracts html from each url in the search results, then divides the html page content into meaningful chunks.
- Embedding Generation: Generate vector embeddings for each chunk using openai embedding models.
- Similarity Search: Find the most relevant content chunks for a given search query.
- AI Summarization: Generates concise summaries of relevant content, then combines all summaries into a combined summary.
- JSON Export: Saves results and summaries as JSON files for easy inspection or downstream use.
Installation
Install via pip (from PyPI):
pip install vibescraper
Or install locally with Poetry:
poetry install
Requirements
- Python 3.12+
- OpenAI API key (for embedding and summarization)
- Other dependencies: numpy, requests, beautifulsoup4, pandas, sqlalchemy, openai, tiktoken, google-api-python-client, html5lib
Usage
- Install the package into your python project, then import the vibe_search function
from vibescraper import vibe_search
ai_summary = await vibe_search(query='What is the state of the software development job market in 2025?', domain_count=10, model='gpt-4o')
Environment Variables
You must set your OpenAI API key (and either a Google or Brave yea keys) as environment variables
License
MIT License
Contributing
Pull requests and issues are welcome!
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vibescraper-0.1.0.tar.gz.
File metadata
- Download URL: vibescraper-0.1.0.tar.gz
- Upload date:
- Size: 13.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.12.3 Linux/6.8.0-52-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc497eb93fe25dc33c1e2d367bd96d8147f042a0b99b83f23ed08fdd60419d2a
|
|
| MD5 |
6316c8bd3db6487639ef796af64519de
|
|
| BLAKE2b-256 |
35cabb6676edd4f7f1ff77c19f7325ec957c887dcf11e6ca4d252d24043164e0
|
File details
Details for the file vibescraper-0.1.0-py3-none-any.whl.
File metadata
- Download URL: vibescraper-0.1.0-py3-none-any.whl
- Upload date:
- Size: 16.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.12.3 Linux/6.8.0-52-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad765f10cc9e425b202c10887d1caa80ab8824eb6765b8ba1007c2b451d358ac
|
|
| MD5 |
d3222f49d76a0ec42bd489aa0f3f6935
|
|
| BLAKE2b-256 |
c91a01ead9cb33aba898169695827419185d8e43bfa3f3b44c9e09b850d662d5
|