Skip to main content

Archive ACT Policing Media Releases

Project description

ACT Police Media Release Archiver

A tool I've made to keep archives of ACT Policing's Media Releases.


PyPI: https://pypi.org/project/act-police-archiver/

Setup

With pip

pip3 install act-police-archiver

Manual

Install poetry:

pip3 install poetry

Update dependencies:

poetry update

Usage

Run as a script

To export all media releases to a specific directory (e.g your Desktop), run this command:

poetry run py -m act_police_archiver -o /path/to/desktop

This will start downloading every media release on ACT Police's website.

To download a specific release, run this command:

poetry run py -m act_police_archiver -o /path/to/desktop -p <url of media release>

Import code

You can also import the code as a module if you want to access specific functions like this:

import act_police_archiver

# Example:
act_police_archiver.scrape_release('someurl', '/path/to/folder')

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

act-police-archiver-1.0.1.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

act_police_archiver-1.0.1-py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page