Lightweight search and text extraction library
Project description
SimpSearch
SimpSearch — Lightweight Python library for extracting clean text and structured search results.
SimpSearch simplifies web search and webpage text extraction by using the W3C HTML-to-Text service.
Features
- Web search using Brave
- Website text extraction
- Raw search output
- Clean text extraction
- Link extraction
- Structured parsed search results
- Pagination support
Installation
pip install simpsearch
Quick Start
from simpsearch import SimpSearch
client = SimpSearch()
print(client.parsed("hello world"))
Usage Examples
Raw search results
client.raw("hello world")
Only links
client.links("hello world")
Example output:
[
"https://example.com",
"https://another-site.com"
]
Structured results
client.parsed("hello world")
Example output:
[
{
"title": "Example Title",
"link": "https://example.com",
"snippet": "Example snippet text"
}
]
Extract website text
client.extract("https://example.com")
Pagination Example
client.parsed("hello world", offset=10)
License
MIT License
Contributing
Contributions are welcome.
If you would like to improve SimpSearch:
- Fork the repository
- Create a new branch
- Commit your changes
- Submit a pull request
Community contributions help make this project better for everyone.
Project details
Release history Release notifications | RSS feed
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 simpsearch-0.1.1.tar.gz.
File metadata
- Download URL: simpsearch-0.1.1.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
afd5ea00feec506c1dd36f0a599201c3f698f92392c24fcf3fda39fc835ee222
|
|
| MD5 |
ac8628650a1fa1f1c412e9fe455399b6
|
|
| BLAKE2b-256 |
32d225f32dae436ce9aa9af9376fce87a9e0ed6513b78bb77afd718fa7007a84
|
File details
Details for the file simpsearch-0.1.1-py3-none-any.whl.
File metadata
- Download URL: simpsearch-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61b211b494eda6262b0e26487df710a94d4f28aba0ece7c4cb9545e11458f458
|
|
| MD5 |
5ae966a10e55083980512bac05ca18ec
|
|
| BLAKE2b-256 |
08bd8911c7445cc9db972b16a4a3ab5020825405ec2de00c13fb2fd722c823b5
|