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

Uploaded Python 3

File details

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

File metadata

  • Download URL: parsera-pieces-0.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 e2ffd5070db485a8fb69ff2f6235c4d9c05dae9b66fae3fd53e366a8ff444337
MD5 0bd2a35c6d6ca2fb03a3ebebfd699b85
BLAKE2b-256 467522504d35c7bd8ac2fd7f31ab651f0ce7b44335d8a7928ea1ce5e8466367f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: parsera_pieces-0.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4c1ac658ec22fddaf58cbbfb800f17051e897077fde0d44a9665e4906feb4d47
MD5 92975234300dd4351171d23cfcbb160e
BLAKE2b-256 c6658f3e7252bdf7daae236471ef7059db37285df04a6b9d0accd5c42ef760ba

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