Skip to main content
https://travis-ci.org/texastribune/tx_election_scrapers.svg

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:

  1. Ingest results: Typically either with curl or cat or anything that pipes output to stdout.

  2. 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.

  3. 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)

Source distribution for tx_elections_scrapers 0.4.1
File Size Uploaded
tx_elections_scrapers-0.4.1.tar.gz 13.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tx_elections_scrapers 0.4.1
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.4.1 This release

2 release files

0.4.0

2 release files

0.3.0

1 release file

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page