Skip to main content

Fetch ARDOT permit officer contact info from all 10 district pages.

Project description

ardot_permit_officer

A Python package to fetch ARDOT permit officer contact information from all 10 district pages.

Features

  • Scrapes name, email, and phone number for each district's permit officer
  • CLI tool to print or export the data

Usage

Command Line

Install the package (from PyPI or locally):

pip install ardot_permit_officer

Run the CLI to print all permit officer info as JSON:

ardot-permit-officer

Python API

You can also use the package in your own Python code. You can choose between dict (default) or object-oriented (Officer class) results:

Get all permit officers (dicts)

from ardot_permit_officer.scraper import get_all_permit_officers
officers = get_all_permit_officers()
for officer in officers:
	print(officer['email'])

Get all permit officers (objects)

from ardot_permit_officer.scraper import get_all_permit_officers_obj
officers = get_all_permit_officers_obj()
for officer in officers:
	print(officer.email)

Get a single district's permit officer (dict)

from ardot_permit_officer.scraper import get_permit_officer_by_district
officer = get_permit_officer_by_district(7)  # For district 7
print(officer['email'])

Get a single district's permit officer (object)

from ardot_permit_officer.scraper import get_permit_officer_by_district_obj
officer = get_permit_officer_by_district_obj(7)
print(officer.email)

Publishing

Publishing to PyPI is automated via GitHub Actions. See .github/workflows/publish.yml.

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

ardot_permit_officer-1.0.1.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

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

ardot_permit_officer-1.0.1-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file ardot_permit_officer-1.0.1.tar.gz.

File metadata

  • Download URL: ardot_permit_officer-1.0.1.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ardot_permit_officer-1.0.1.tar.gz
Algorithm Hash digest
SHA256 3c27c9539a0fc03c4573e65777f9a44ad7cc981ae78416a90f4f519b0f8543aa
MD5 5fc19489473fa614dba437f6b876144f
BLAKE2b-256 9c5d91f2a234c1ca9ab4dff1f597201890f812f874185a356f807fbdb28b6e19

See more details on using hashes here.

Provenance

The following attestation bundles were made for ardot_permit_officer-1.0.1.tar.gz:

Publisher: pypi-publish.yml on kumpeapps/ardot-permit-officer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ardot_permit_officer-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ardot_permit_officer-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5fb533b9ad84463daeda707009d128cf6b3b94ea2131dd361c96ab912a0a6b8d
MD5 49a733c063b25e726fc087deeed3a279
BLAKE2b-256 a654303977fbc83aa5f2a4899f8b8f4c7dbf808febdd8c58a9b11f1931ab899c

See more details on using hashes here.

Provenance

The following attestation bundles were made for ardot_permit_officer-1.0.1-py3-none-any.whl:

Publisher: pypi-publish.yml on kumpeapps/ardot-permit-officer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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