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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: scrapers_for_journalists-0.1.6.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.6.tar.gz
Algorithm Hash digest
SHA256 611f751bf6e55f1a51fff253b311d18f9f57db76a406345809b8597c396a0b33
MD5 49609da1c4315256921398b49a65cd4d
BLAKE2b-256 c542f45e93e78c974a7372ce31f9e272a628a59edb62bc2ee67ecb355b0c086f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for scrapers_for_journalists-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 b7331961175cd3ef8bfe56414148799296d5ebb110e646ff456136931290418b
MD5 79d9a540885703579cf957c7ea3b5206
BLAKE2b-256 581ce2dee5d02b98b6ce063b6ac1959bef06f5e872554ce5f3378d4f165daf9f

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