Skip to main content

PyPI PyPI - Python Version License: GPL v3 Pydantic v2 Ruff Checked with mypy Poetry pytest

Scraper-core

Core library for collectors/scrapers of PaZuFa, providing shared functionality and base classes.

Status: Work in Progress (WIP). For a detailed status overview, see the status page in the wiki (German).

The detailed documentation can be found in the wiki (German).

Requests

If you have a request for the Scraper-core, the best way to voice it is to write a Codeberg issue. Please add the label external-request to it.

If it is a bug you can alternatively use the label Bug.

For requests and questions, you can, of course, contact us on Mattermost.

Structure

The library consists of three parts:

  1. CoreLib: shared classes and utilities used by all scrapers regardless of implementation approach. This includes Pydantic validation models, API client helpers, common data transformation functions, standardised phrases and tag mappings (e.g. normalising committee names, document types, and Schlagworte across parliaments), and reusable components for tasks like LLM enrichment.
  2. Scrapy-based: Opinionated implementation of Corelib in Scrapy based classes.
  3. Collector-based: Our project's scaffolding for scrapers, implemented in an opinionated manner using Corelib.

Requirements

  • Python 3.12+
  • Poetry 2.x

For the full dependency list, see pyproject.toml.

Setup

See SETUP.md for the full setup guide, which is versioned alongside the code.

Contribution

See CONTRIBUTING.md for development setup, git workflow, code generation, documentation and project context.

License

GPL-3.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pazufa_corelib-0.2.0.tar.gz (127.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pazufa_corelib-0.2.0-py3-none-any.whl (206.2 kB view details)

Uploaded Python 3

File details

Details for the file pazufa_corelib-0.2.0.tar.gz.

File metadata

  • Download URL: pazufa_corelib-0.2.0.tar.gz
  • Upload date:
  • Size: 127.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.13

File hashes

Hashes for pazufa_corelib-0.2.0.tar.gz
Algorithm Hash digest
SHA256 09980c4eadafb1082bd175e9bafa1c6663df55e20e88f48fce4471ed9e53099e
MD5 cf2f9d604d48fd7ec8789442427ec15a
BLAKE2b-256 b6a94a5156400e38a8e5a400e37403d250a4cf7ccc8bbe871818c7006931b95c

See more details on using hashes here.

File details

Details for the file pazufa_corelib-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pazufa_corelib-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 206.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.13

File hashes

Hashes for pazufa_corelib-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0932f6e0224057f6795148b24d539565588187a455cbda901fd23b9ee7271536
MD5 a6497c42a349dd8a66e79e056a9a917c
BLAKE2b-256 bd6382896eff480f91ecfe314f0e55db92e1584e720feb2ca3ab588ac9d11413

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.1

2 files

This release

0.2.0 This release

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page