scrapers-for-journalists
Scraper(s) to help the journalists retrieve data or monitor sites for potential leads for stories.
Using the scrapers
pip install scrapers_for_journalists
And then import a scraper, e.g. from domstoldk.retrive import DomStolScrape
Every file in utils/can be imported in your scrapers, as it is added as a package in pyproject.toml. For example, you can import the BaseScraper with generic utilities like: from base import BaseScraper.
Description of current scrapers
domstol.dk
This scrapers retrieves information about current court cases ("retslister") in Danish "byretter" (Currently, Højesteret etc. are not included). Civil cases and tvangsauktioner are filtered away. Relevance of the cases are estimated based on keywords and "gerningskoder" (types of crimes) from the Danish Police.
To run it manually, use:
poetry run python domstoldk/retrieve.py --outfile test.xlsx
afdøde.dk
This scraper retrieves information about public "dødsannoncer" from afdøde.dk.
To run it manually, use:
poetry run python afdoededk/retrieve.py --outfile test.xlsx --from_date "2024-11-01" --to_date "2024-11-02"
politi.dk
This scraper retrieves police reports ("døgnrapporter") from politi.dk.
To run it manually, use:
poetry run python doegnrapporter/retrieve.py --outfile test.xlsx --from_date "2024-11-01" --to_date "2024-11-01"
Metadata
Release files for scrapers_for_journalists 0.1.8
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 |
|---|---|---|---|---|
| scrapers_for_journalists-0.1.8.tar.gz | 27.8 kB | Without provenance | Details for scrapers_for_journalists-0.1.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| scrapers_for_journalists-0.1.8-py3-none-any.whl | Python 3 | none | any | Details for scrapers_for_journalists-0.1.8-py3-none-any.whl |
Total release size: 57.1 kB
Release files / scrapers_for_journalists-0.1.8.tar.gz
| Download URL | scrapers_for_journalists-0.1.8.tar.gz |
|---|---|
| Size | 27.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a5bad84c5e1221e38e1b3c876838b3c36fe0ada26d22ca3fbfcdb975758a6869
|
|
BLAKE2b-256 checksum How to use checksums |
06845c8fcb1b5a046466b3f4cac6210b31fdd1c74ad1fb214ef1cafadb91ba15
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.1 CPython/3.12.3 Linux/7.0.0-30-generic
|
Release files / scrapers_for_journalists-0.1.8-py3-none-any.whl
| Download URL | scrapers_for_journalists-0.1.8-py3-none-any.whl |
|---|---|
| Size | 29.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c4080f61910705a2353970e12678edb65135ce8487a48bd3d04a5d86443e320e
|
|
BLAKE2b-256 checksum How to use checksums |
8df9906bc0015606dae845545cbfd2ce5a8c7906917ad51e226bda36619698bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.1 CPython/3.12.3 Linux/7.0.0-30-generic
|
Security for scrapers_for_journalists 0.1.8
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.