Skip to main content

A powerful web content fetcher and processor

Project description

ParserLite: Lightweight Web Search & Text Processing 🚀

License: MIT Python 3.8+ Downloads

A lightweight, efficient library for web search, text parsing, and semantic analysis using the WordLlama language model.

🌟 Features

  • 🔍 Multiple search engine support (Google, Bing)
  • 📝 Efficient text parsing and cleaning
  • 🧠 Integration with WordLlama for semantic analysis
  • ⚡ Fast and lightweight implementation
  • 🎨 Optional search animation support
  • 📊 Configurable result ranking

📦 Installation

pip install parselite searchlite wordllama

🚀 Quick Start

GoogleSearch+AI

from visionlite import vision
results = vision("What is quantum computing?")
print(results)

BingSearch+AI

from visionlite import visionbing
results = visionbing("What is quantum computing?")
print(results)

📖 Usage Examples

Basic Search with Google

def vision(query, k=1, max_urls=5, animation=False):
    # Search, parse, and rank results
    results = llm.topk(
        query,
        llm.split("".join(
            parse(google(query, max_urls=max_urls, animation=animation))
        )),
        k=k
    )
    return "\n".join(results)

# Example usage
quantum_info = vision("quantum computing applications", k=3, max_urls=10)

Search with Bing

def visionbing(query, k=1, max_urls=5, animation=False):
    # Search using Bing, parse, and rank results
    results = llm.topk(
        query,
        llm.split("".join(
            parse(bing(query, max_urls=max_urls, animation=animation))
        )),
        k=k
    )
    return "\n".join(results)

# Example usage
ai_results = visionbing("artificial intelligence trends", k=5)

🔧 Configuration

Search Parameters

  • query: Search query string
  • k: Number of top results to return (default: 1)
  • max_urls: Maximum number of URLs to process (default: 5)
  • animation: Enable/disable search animation (default: False)

🤝 Contributing

Contributions are welcome! Here's how you can help:

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

  • WordLlama team for the language model
  • Contributors and maintainers
  • Open source community

🔮 Future Plans

  • Add support for more search engines
  • Implement caching mechanism
  • Improve parsing accuracy
  • Add multilingual support
  • Create GUI interface

⭐ Star History

Star History Chart

📊 Performance

Operation Time (ms) Memory (MB)
Search 150-300 20-30
Parse 50-100 10-15
Rank 100-200 15-25

🔥 Showcase

Projects using ParserLite:

  • Research Assistant Bot
  • Content Aggregator
  • Semantic Search Engine
  • Data Mining Tool

Made with ❤️ by [Your Name]

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

ailite-0.7.0.tar.gz (30.5 kB view details)

Uploaded Source

Built Distribution

ailite-0.7.0-py3-none-any.whl (36.9 kB view details)

Uploaded Python 3

File details

Details for the file ailite-0.7.0.tar.gz.

File metadata

  • Download URL: ailite-0.7.0.tar.gz
  • Upload date:
  • Size: 30.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12

File hashes

Hashes for ailite-0.7.0.tar.gz
Algorithm Hash digest
SHA256 3c7a1dd92bfe9bfc9a09bd4243aab232cfffd98b6dee30f76da7160905f9aa64
MD5 3fe8ddb5333defd5bdb442ab2f09767f
BLAKE2b-256 0fd0fdb69e373b5b82b94e2cc31f40ec636d61f664d450c803ba983e3ac1a012

See more details on using hashes here.

File details

Details for the file ailite-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: ailite-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 36.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12

File hashes

Hashes for ailite-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6d83d22148e7f449cfc398df533ff5ad366a79794333b531aa14bd1e5fc453aa
MD5 7317328918f2187f85112c020eda90a7
BLAKE2b-256 eae6460dda3e0085ab44a4ac430733a1ecf81705d0f2cf4f65f7e2065c452910

See more details on using hashes here.

Supported by

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