Skip to main content

Data from the Alaska Public Offices Commission.

Project description

APOC Data

Alaska campaign financial disclosure 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.


Download a Recent Scrape

You can download the daily-scraped CSVs from the GitHub releases (this is what most users want).

From the Web Interface

Browse from this repo's releases.

From the CLI

Using uv's uvx:

uvx apoc-data download # downloads all files from the latest release to ./downloads/ folder
uvx apoc-data download --release "20260702-125614" --destination mydownloads/ # specify explicitly

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

curl -L https://github.com/NickCrews/apoc-data/releases/latest/download/candidate_registration.csv > candidate_registration.csv # get latest
curl -L https://github.com/NickCrews/apoc-data/releases/download/20240716-025636/candidate_registration.csv > candidate_registration.csv # or a different url pattern for specific releases

# query directly using duckdb
duckdb -c "SELECT count(*) FROM 'https://github.com/NickCrews/apoc-data/releases/latest/download/candidate_registration.csv'"
duckdb -c "SELECT count(*) FROM 'https://github.com/NickCrews/apoc-data/releases/download/20240716-025636/candidate_registration.csv'"

From python

We provide a python API too. uv add apoc-data and then

from apoc_data.releases import download

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

Scrape Yourself

You can also scrape fresh data directly from the APOC website (requires the scrape extra for playwright):

uvx "apoc-data[scrape]" scrape --directory scraped/

There is also a python API. Read the source code.


Dev Notes

Create venv and install dev deps:

uv sync

scrape:

uv run 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.3.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

apoc_data-0.1.3-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: apoc_data-0.1.3.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.1 {"installer":{"name":"uv","version":"0.11.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for apoc_data-0.1.3.tar.gz
Algorithm Hash digest
SHA256 0994493609eb5bda55ebdba410a193d3339da3f4315e6efb02c9f6abf91933ce
MD5 06c488cdd96b106e86c2c16947337f65
BLAKE2b-256 3b547cb26cb221134e93f40919de585db4bf2e774a75ff0f52102a228d1dee97

See more details on using hashes here.

File details

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

File metadata

  • Download URL: apoc_data-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.1 {"installer":{"name":"uv","version":"0.11.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for apoc_data-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7298459e61e467d8490f156662b601dca6b722587e9354ca817b3338319c48ee
MD5 a63e8236da96faf262fae77a2fcd0c80
BLAKE2b-256 640dde8f354f427390704f6432742a8090c94c03b3efc43ab1d7c3a5c42a1e54

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