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.6.tar.gz (11.5 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.6-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: parsera-pieces-0.0.6.tar.gz
  • Upload date:
  • Size: 11.5 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.6.tar.gz
Algorithm Hash digest
SHA256 71ffb5a397bd2db54c9020f6c0b9295a50eb5b09ae6da1e3fe6c297b89f6f61f
MD5 3eb74902ec5085d68823f33a9f46c5c1
BLAKE2b-256 745b7d9929bc677dc7f18fc1716a9b43fa3c45bcc4f691e2513948799d6cb44e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: parsera_pieces-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 12.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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 22faa730f5f781aa9f4bb7447afa64aa35058a7c7e8428abecfc8e2b63f4fe74
MD5 8758b39a7a3ae6153fd022e1dcee8413
BLAKE2b-256 a8b6c56b1c8f9ab20011b975e2792d26da7c04bad40768f7e0d584921c0eac24

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