Skip to main content

Fork of the original Parsera Lightweight library for scraping web-sites with Pieces QGPT LLM

Project description

📦 Parsera with Pieces

Fork of Parsera - Lightweight Python library for scraping websites with LLMs, specifically using Pieces QGPT endpoint.

Why Parsera?

Because it's simple and lightweight, with minimal token use which boosts speed and reduces expenses.

Installation

pip install parsera-pieces
playwright install

Basic usage

You can do this from python with:

from parsera_pieces import Parsera

async def main():
       url = "https://code.pieces.app/blog"
       elements = {
           "Blog Title": "Title of the blog",
           "Blog Author": "Author of the specific blog post",
           "Published Date": "Date when the project was published",
       }

       scraper = Parsera(None)
       result = await scraper.arun(url=url, elements=elements)
       print(result)

if __name__ == "__main__":
       import asyncio
       asyncio.run(main())

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

parsera-pieces-0.0.4.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

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

parsera_pieces-0.0.4-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file parsera-pieces-0.0.4.tar.gz.

File metadata

  • Download URL: parsera-pieces-0.0.4.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.5

File hashes

Hashes for parsera-pieces-0.0.4.tar.gz
Algorithm Hash digest
SHA256 fb7bc1b8a5d26ad715d92c9172f39c7c4488b973511ced21914713e84475d27c
MD5 01a91b469ac2bb7b628995d1fbcb3167
BLAKE2b-256 12bbd0ef9fc4ce4c49f15e305129fb4b44e0e9bb6ab40c2380e8f74bc8ccbcab

See more details on using hashes here.

File details

Details for the file parsera_pieces-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: parsera_pieces-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.5

File hashes

Hashes for parsera_pieces-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c391fda47348da7c1acf489fca97db07f93f20e53474f0124a946475dac328aa
MD5 caddec6dfa4240fd9c8d2594f8f589ce
BLAKE2b-256 ca88cc48e0a3ca2f430afdc6496cfda857d0ac172a334299361129577da876c8

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