Skip to main content

scraper client for the This American Life website

Project description

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.


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

Get the transcript of an episode

ep_one_transcript = tal.transcripts.get(episode_number=1)


# result ...
# {
#   "act_id": "prologue", "act_number": 1, "act_title": "Prologue", 
#   "begin": "00:00:00.17",  
#   "line": "Joe Franklin?", 
#   "speaker": "interviewer", 
#   "speaker_name": "Ira Glass"
# }

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for this-american-life, version 0.3.0
Filename, size File type Python version Upload date Hashes
Filename, size this_american_life-0.3.0-py3-none-any.whl (15.5 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page