In [2]:
import youtube_edits as youtube_edits_module
edits = youtube_edits_module.edits

In [3]:
mapping = get_video_excerpts_map(edits)
print(mapping)
# They are out of order because the mapping is a dict and not an OrderedDict


{'create-serializers': ('Creating a file called serializers inside app for API.', ('00:06:15', '00:07:36')), 'entire video': ('The entire video.', ('', '')), 'foreign-key-serializ': ('Setting up a serializer class for a model with foreign keys.', ('00:09:34', '00:11:12')), 'create-view': ('Creating the view for the REST API.', ('00:15:58', '00:16:20')), 'create-detail-view': ('Create a view for the detail.', ('00:17:11', '00:17:21')), 'edit-django-config': ('Editing django config to include REST API app.', ('00:03:43', '00:04:32')), 'formatting-data': ('Formatting the data returned depending on the suffix in the URI.', ('00:14:09', '00:14:22')), 'urls': ('Urls for API.', ('00:11:34', '00:13:39')), 'install-pkg': ('Installing the package to make REST API.', ('00:02:11', '00:03:42'))}

In [4]:
url = get_youtube_url_from('gz5TPI2sSTo')
for key, value in mapping.items():
    display(HTML(get_embed_string_from(value, url)))


Creating a file called serializers inside app for API.

start: 00:06:15

end: 00:07:36


The entire video.


Setting up a serializer class for a model with foreign keys.

start: 00:09:34

end: 00:11:12


Creating the view for the REST API.

start: 00:15:58

end: 00:16:20


Create a view for the detail.

start: 00:17:11

end: 00:17:21


Editing django config to include REST API app.

start: 00:03:43

end: 00:04:32


Formatting the data returned depending on the suffix in the URI.

start: 00:14:09

end: 00:14:22


Urls for API.

start: 00:11:34

end: 00:13:39


Installing the package to make REST API.

start: 00:02:11

end: 00:03:42