Excercise: Downloading and playing of a video • Program an application that downloads a video from the internet (from a certain URL)
1. Create an application menu with 1 item called "get video" to choose.
2. Create a function called fetching. Use the url.retrieve function that import urllib urllib.urlretrieve(url, tempfile)
3. Use the content handler to open the video ready for playing. content_handler.open(tempfile)
Example file: ex_video_download.py Description: ex_video_download_descr.py
|
|
|
|