this american client
The This American Life client library.
Get structured data on transcripts, episodes, et c without worrying about all of the web scraping details. Intermediate results are cached to keep it snappy.
Install
pip install this-american-life
Using the client
Everything starts with the import
from thisamericanlife import ThisAmericanLife
tal = ThisAmericanLife()
Get the episode and act summaries
ep_one = tal.episodes.get(episode_number=1)
print('Title : ' + ep_one.title)
print('Date on air : ' + ep_one.date_on_air)
print('Description : ' + ep_one.description)
# the name and short description of each act
print(ep_one.act_summaries)
Get the transcript of an episode
ep_one_transcript = tal.transcripts.get(episode_number=1)
print(ep_one_transcript.transcript[0])
# result ...
# {
# "act_id": "prologue", "act_number": 1, "act_title": "Prologue",
# "begin": "00:00:00.17",
# "line": "Joe Franklin?",
# "speaker": "interviewer",
# "speaker_name": "Ira Glass"
# }
Metadata
Release files for this-american-life 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| this_american_life-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / this_american_life-0.3.0-py3-none-any.whl
| Download URL | this_american_life-0.3.0-py3-none-any.whl |
|---|---|
| Size | 15.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
61bb9aea0dbaf8717315eba62f98d3737023e21f0d81c1f4fea60e5454a5541b
|
|
BLAKE2b-256 checksum How to use checksums |
4221b39ae1fccdff54b1b62e9dec3cbca9d984bdc0d76cd92c7fb8bf63aefbd6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.16
|
Security for this-american-life 0.3.0
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.