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 git+https://github.com/kristeligt-dagblad/scrapers_for_journalists.git

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 domstol-dk/retrieve.py --outfile test.xlsx

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.0.tar.gz (4.3 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.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: scrapers_for_journalists-0.1.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-1025-oem

File hashes

Hashes for scrapers_for_journalists-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e1f77d4208e12745518378545de821b87d46010397e1f71cf3a62bf5d694c1a5
MD5 cdc61d32ee424f680e45401be5f89369
BLAKE2b-256 f770a4fc3b015d6af3f6a5aff48868f29545b2509a7d18ebca6b56f3d2a84513

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for scrapers_for_journalists-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 90a677da3b159e243fe962db7c46434130f6da19849de4d237a8b5f4e63ccf10
MD5 2b22fa0a9e5f5d80ea4f2963f591ec5f
BLAKE2b-256 43908b7f5b427aaf649e1dbf726e831faea4c7974ec0ff337012e252efd5ef60

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