Skip to main content

Scrapers that helps journalists at Kristeligt Dagblad

Project description

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==0.1.2

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"

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

scrapers_for_journalists-0.1.5.tar.gz (27.5 kB view details)

Uploaded Source

Built Distribution

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

scrapers_for_journalists-0.1.5-py3-none-any.whl (28.7 kB view details)

Uploaded Python 3

File details

Details for the file scrapers_for_journalists-0.1.5.tar.gz.

File metadata

  • Download URL: scrapers_for_journalists-0.1.5.tar.gz
  • Upload date:
  • Size: 27.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.3 Linux/6.8.0-49-generic

File hashes

Hashes for scrapers_for_journalists-0.1.5.tar.gz
Algorithm Hash digest
SHA256 bb6b89f28d7d96a2b159696d5ef031ce9427d21b06ec5892711eafd001fcec36
MD5 7f86761795b38ec687c1b1645a73ac84
BLAKE2b-256 275efc4691ebdabb22403c9d169c1faf2401db48d020ed029951a2bc57a60859

See more details on using hashes here.

File details

Details for the file scrapers_for_journalists-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for scrapers_for_journalists-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5ba168f12a65a4e1cf0059eb91fd5adbd634aeaeade2fca55afe1c10ba126657
MD5 53805c80580fc45f12cd0e9aaef847a3
BLAKE2b-256 f78cb3b265581d35b09352bee33e400f09166f0dde605837faa2f4c2edf36792

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