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.2.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.2-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: parsera-pieces-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 4c3b5d343dcb663922b651253cc5a4e089ff6d9c8defae291aa2583992e2638d
MD5 5a88e1d1ff4658aee1413056e22392a0
BLAKE2b-256 d56131a121e8c41bd2b8500ec1154617dac70a37733bbce5488e50ea43f5cadd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: parsera_pieces-0.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bfaff839e04177604af5990b49b8a6973dee1bdae3c0723b9ee9222bdc58a80a
MD5 53743e909244f0e148ab8ebbad962760
BLAKE2b-256 a7076ec77489ca9616d756351eb0df9ca9ad2aeb47544069e1b31502b765c40a

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