scraper client for the This American Life website
Project description
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"
# }
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file this_american_life-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: this_american_life-0.3.0-py3-none-any.whl
- Upload date:
- Size: 15.5 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61bb9aea0dbaf8717315eba62f98d3737023e21f0d81c1f4fea60e5454a5541b |
|
MD5 | 5c248a569afa4330c8595fce94dc3792 |
|
BLAKE2b-256 | 4221b39ae1fccdff54b1b62e9dec3cbca9d984bdc0d76cd92c7fb8bf63aefbd6 |