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.2.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

apoc_data-0.1.2-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: apoc_data-0.1.2.tar.gz
  • Upload date:
  • Size: 8.2 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.2.tar.gz
Algorithm Hash digest
SHA256 c670208e89f150c8352669ff6d795e5b5b684590a0d6bb3d3f0b9e6017e06400
MD5 ac651bf2ee2592ee2f2d121abe025d66
BLAKE2b-256 d4ef226b6b2b1a5ad91aa25d318d4152d8fbb803eac113dda81684d8f04e0a53

See more details on using hashes here.

File details

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

File metadata

  • Download URL: apoc_data-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 9.8 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fc37f7aa21e4e38d2b154c342194666256eedfdf2a90e1dd56c4cb7f0d4ed5b8
MD5 e4af9b63c6138fdb3e84de7d7222382f
BLAKE2b-256 3d5d83fbd23a6084bd4877bf758f0bd57060c55ba8f57063aa9ba20c0b8962c6

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