AllenPyClient is an unofficial Python wrapper to develop applications integrating Allen's official web API.
In this example, we will fetch the links of the videos available to us.
main.py
from allen import AllenClient
import os
env = os.environ
user = env['user']
passwd = env['passwd']
client = AllenClient(username=user, password=passwd)
videos = client.get_recorded_videos()
for video in videos:
link = video.get_link()
# Print the video link with the subject name and recording date
print(f'{video.subject_name} ({video.get_recording_date()}) - {link}')
You can also use the library from a command line.
$ allen help $ allen videos
pip install allen-py-client
The list of required python modules can be found in the requirements.txt
file.
To view the documentation for this project, visit the documentation page.