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.
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 | |
|---|---|---|---|
| tx_elections_scrapers-0.4.1.tar.gz | 13.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tx_elections_scrapers-0.4.1-py2-none-any.whl | Python 2 | none | any | Details |
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 |