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.main 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.1.tar.gz (10.1 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.1-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: parsera-pieces-0.0.1.tar.gz
  • Upload date:
  • Size: 10.1 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.1.tar.gz
Algorithm Hash digest
SHA256 a17bc12f107beca116583b7c565c88b554ff99137ae248d7d30d2b804f63c66b
MD5 dc6fcfe3e84a45fd27fe492eb45bdc64
BLAKE2b-256 8ef3666f7f0ec4d7460db4f16df02d5659e22d1b18a9989001df1723636a8114

See more details on using hashes here.

File details

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

File metadata

  • Download URL: parsera_pieces-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.5 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b639ef6d7d83f6369ff67642b47c0c2a7f65fc76afbd601d6ab563be7cace8c1
MD5 ddfc6b8abdb72853e04e7fb87c6858e7
BLAKE2b-256 d8b2db0ff596302f75c89e823f0cace144cd41793ae0d5b07f9a2cc0ad9dd8f5

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