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.4.tar.gz (26.8 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.4-py3-none-any.whl (27.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: scrapers_for_journalists-0.1.4.tar.gz
  • Upload date:
  • Size: 26.8 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.4.tar.gz
Algorithm Hash digest
SHA256 0af13b24ead58af7efbc9c74ee03f22eb0f8858706fc672795e2e0b26c229806
MD5 e363b378e969092456d7ed7ed99939f5
BLAKE2b-256 9f4357d40ca7d3c2c7eabfa91d4d0988a77c943383c887f0b25eb292e134a600

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for scrapers_for_journalists-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 930509264d18483e438d3683a84170c50b088f539386370a078ff8ea39f65dc0
MD5 778de5697aa8ebdcbe33a727a36cc701
BLAKE2b-256 5cfeffba34be49ab8d662e09649d08fb274ea39d5475fad522dd773bd72e4bfc

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