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.5.tar.gz (9.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.5-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: parsera-pieces-0.0.5.tar.gz
  • Upload date:
  • Size: 9.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.5.tar.gz
Algorithm Hash digest
SHA256 688d2d6be570417a5e70a972050a7cf1f2ccc1a6d041850d2fb11e0e3632f053
MD5 843d66b370f388b6b5b1ec6d5c49468c
BLAKE2b-256 b0f3ddaa8e6c566006ecf11f5914a9890f83efb8bc239c6a2ad13e2c26b23fd1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: parsera_pieces-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 8.9 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 eed298e467961c9b400100b91e658d5f2b22914f2d6c112b65ca5cd1180e17c3
MD5 d412419b3d2075e611121dc97e3addca
BLAKE2b-256 c62d984a1df44e813091b398305660cb92ab252ac94c6e3851854711a5b15aa3

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