Texas Elections Scrapers
Hi. This is just me fooling around trying to come up a better way to scrape election results. The tricky logic has been refined in other Texas Tribune projects, but they were deeply tied to other logic.
The idea is to split the process up into multiple logical steps that other people might find useful:
Ingest results: Typically either with curl or cat or anything that pipes output to stdout.
Serialize the output html as JSON: Does not attempt to extract information. Just separates data from the html. This is the hard part that scrapers have trouble with.
Interpret the serialized output: Turns the raw serialized data into something you might expect to see from a nice API.
In a Extract, transform, load (ETL) process, this just covers the extractions, with support for minor transforming.
Metadata
Release files for tx_elections_scrapers 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tx_elections_scrapers-0.4.1.tar.gz | 13.0 kB | Without provenance | Details for tx_elections_scrapers-0.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tx_elections_scrapers-0.4.1-py2-none-any.whl | Python 2 | none | any | Details for tx_elections_scrapers-0.4.1-py2-none-any.whl |
Total release size: 32.5 kB
Release files / tx_elections_scrapers-0.4.1.tar.gz
| Download URL | tx_elections_scrapers-0.4.1.tar.gz |
|---|---|
| Size | 13.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e4e1f077b8eb2d4a33664c3b13c0d50b71b4452cb3f9a1e68d3540d6ab608d6c
|
|
BLAKE2b-256 checksum How to use checksums |
6d869a48ca92cba88bd71e35f548e40a870d8cf088d00c748bf1a8ed7cba923b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / tx_elections_scrapers-0.4.1-py2-none-any.whl
| Download URL | tx_elections_scrapers-0.4.1-py2-none-any.whl |
|---|---|
| Size | 19.5 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
0b957b7c7c147def6fba69b6c46ba1643339bfcd5ac14be46ac884dba066644d
|
|
BLAKE2b-256 checksum How to use checksums |
a2ab47a9874b1b485c5845836cb3c2cc68edb903df09c094e0207f82748c573a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for tx_elections_scrapers 0.4.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.