Skip to main content

Data from the Alaska Public Offices Commission.

Project description

APOC Data

Data from the Alaska Public Offices Commission.

This scrapes the CSV files from the APOC website once a day and uploads them to this repo's releases.

Manual

Browse from this repo's releases.

Python

pip install apoc-data and then

from apoc_data.download import download

download(
    release="latest",
    filename="debt.csv",
    destination="apoc_debt.csv",
)

Shell

You can download these CSVs using the direct URLs from the releases page using curl, pandas, ibis, whatever!

curl -L https://github.com/NickCrews/apoc-data/releases/download/20240716-025636/candidate_registration.csv > candidate_registration.csv

or we have a tiny python script that makes this a little nicer, eg get the latest release, choose the download directory, etc. Read the script for more info.

curl -s https://raw.githubusercontent.com/NickCrews/apoc-data/main/src/apoc_data/download.py | python - --release latest

Dev Notes

pdm install
playwright install chromium

scrape:

python -m apoc_data.scrape --directory downloads --no-headless

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

apoc_data-0.1.1.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

apoc_data-0.1.1-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file apoc_data-0.1.1.tar.gz.

File metadata

  • Download URL: apoc_data-0.1.1.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.16.1 CPython/3.12.4 Darwin/23.5.0

File hashes

Hashes for apoc_data-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9ae05cbf49d8e5ddd80de07869e358323cba33fc2fa897861671e7e862203278
MD5 680fe57fc1faf655f1f3c44e16a0cf17
BLAKE2b-256 90e7541fdfd3bf4fe5f0efb197cb0ca07325e025470ab8db26b7e33009d940a9

See more details on using hashes here.

File details

Details for the file apoc_data-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: apoc_data-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.16.1 CPython/3.12.4 Darwin/23.5.0

File hashes

Hashes for apoc_data-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 31b4aaa7b7a1879b93336e6502289e4fa2bda22f3cfdc1021a477a80ca48631d
MD5 d53978258c9ee4995e8cc19a0b661594
BLAKE2b-256 f2b7c9cd530389a5e314ee1eeee929ac217ebff5fcd7784b21e5281788b2df59

See more details on using hashes here.

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