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"

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.3.tar.gz (26.7 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.3-py3-none-any.whl (27.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for scrapers_for_journalists-0.1.3.tar.gz
Algorithm Hash digest
SHA256 243f78260558ad14c5940447234dcd1cc5bfb77b9439c66cd0ef1619e18736ff
MD5 b5a1b3ddf025ad4ea84ed1601fb49d7c
BLAKE2b-256 ac3b7d74515936dc0655e52f073fdaeed6ce533913139248e92f8a41a0b0c751

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for scrapers_for_journalists-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d37faec78a03f952933ae14409aad21db670564aededf0fb26530b0ee3b45537
MD5 06ed5599541489886c8e06d58c428374
BLAKE2b-256 24db7857a75100c5476b7e0ffd47ea0d2a643685c041e60f385cc95a204ef671

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