Skip to main content

this american client

PyPI version

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"
# }

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)

Table of built distributions (wheels) for this-american-life 0.3.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.3.0 This release

1 release file

0.2.0

3 release files

0.1.1

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