Skip to main content

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:

  1. Fork the repository
  2. Create a new branch
  3. Commit your changes
  4. Submit a pull request

Community contributions help make this project better for everyone.

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

simpsearch-0.1.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simpsearch-0.1.1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

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

Hashes for simpsearch-0.1.1.tar.gz
Algorithm Hash digest
SHA256 afd5ea00feec506c1dd36f0a599201c3f698f92392c24fcf3fda39fc835ee222
MD5 ac8628650a1fa1f1c412e9fe455399b6
BLAKE2b-256 32d225f32dae436ce9aa9af9376fce87a9e0ed6513b78bb77afd718fa7007a84

See more details on using hashes here.

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

Hashes for simpsearch-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 61b211b494eda6262b0e26487df710a94d4f28aba0ece7c4cb9545e11458f458
MD5 5ae966a10e55083980512bac05ca18ec
BLAKE2b-256 08bd8911c7445cc9db972b16a4a3ab5020825405ec2de00c13fb2fd722c823b5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page