Inklog
Inklog is a collection of uvx-friendly scrapers for analysts. It provides a CLI for automation and a TUI (work in progress) for browsing available scrapers. The current focus is downloading files (PDF/EPUB). Webpage-to-markdown scraping is planned but not implemented yet.
All dates in this repository use the ISO8601 format: YYYY-MM-DD.
Quick start
Run a scraper (CLI)
uvx inklog run malaysia_parliament 2025-11-01 2025-11-30
List scrapers
uvx inklog list
Show example URLs
uvx inklog info malaysia_parliament
Run the TUI
uvx inklog
Run a single document type:
uvx inklog run malaysia_parliament:lower_house_hansard 2025-11-01 2025-11-30
TUI
The TUI is a work in progress. It shows the available scrapers, their descriptions, and lets you run a scraper with date ranges and options. Each Malaysia Parliament document type appears as its own row for quick runs.
Key bindings:
EnterorRunbutton: run the selected scraper- Example URLs can be opened from the details pane
Q: quit
Malaysia Parliament scraper
This scraper downloads PDFs from the Malaysia Parliament site for the following document types:
- Dewan Rakyat - Jawapan Lisan (Oral Answers)
- Dewan Rakyat - Jawapan Bukan Lisan (Non-Oral Answers)
- Dewan Rakyat - Penyata Rasmi (Official Report)
- Dewan Negara - Jawapan Bertulis (Written Answers)
Filename rules
Some sources change their filename patterns over the years. Inklog models this using date-bound filename rules, so each document type can define a list of templates tied to start/end dates. The Malaysia Parliament scraper ships with the current pattern and a rules table that can be extended when historical patterns are known.
CLI options
inklog run supports overriding boolean options with --set:
uvx inklog run malaysia_parliament 2025-11-01 2025-11-30 \
--set jawapan_lisan_rakyat=true \
--set jawapan_bukan_lisan_rakyat=true \
--set penyata_rasmi_rakyat=true \
--set jawapan_bertulis_negara=false
Adding a new scraper
- Copy
src/inklog/scrapers/template.pyand rename it. - Update
ScraperMetaand implementrun(). - Ensure the module exports
SCRAPER.
Scrapers are auto-discovered from the inklog.scrapers package.
Development
uv sync --extra dev
uv run ruff check --fix .
uv run ruff format .
uv run pytest
Roadmap
- Add markdown scraping mode (TBD).
- Expand filename rules for historical Malaysia Parliament patterns.
Metadata
Release files for inklog 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| inklog-0.2.0.tar.gz | 32.0 kB | Without provenance | Details for inklog-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| inklog-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for inklog-0.2.0-py3-none-any.whl |
Total release size: 56.5 kB
Release files / inklog-0.2.0.tar.gz
| Download URL | inklog-0.2.0.tar.gz |
|---|---|
| Size | 32.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5f41efbc65595a4cf2bc3658190ac2464d85f6f8b671b26e8a525c5463267cfd
|
|
BLAKE2b-256 checksum How to use checksums |
5c9b78b84c2938644bacb2e5b5f39de748157f9d2b6e1cfbcc59911959c3e989
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / inklog-0.2.0-py3-none-any.whl
| Download URL | inklog-0.2.0-py3-none-any.whl |
|---|---|
| Size | 24.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d8161537e994022f25d9c34cee1223738c0b2e7f6539866cdad85c63aea5dd50
|
|
BLAKE2b-256 checksum How to use checksums |
4d8b014c575c2bae889440c438dcc1a8ef77ffcd7284379fbc9143799c1394e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for inklog 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.