()
| 14 | |
| 15 | |
| 16 | def get_video_links(): |
| 17 | # create response object |
| 18 | r = requests.get(archive_url) |
| 19 | |
| 20 | # create beautiful-soup object |
| 21 | soup = BeautifulSoup(r.content, "html5lib") |
| 22 | |
| 23 | # find all links on web-page |
| 24 | links = soup.findAll("a") |
| 25 | |
| 26 | # filter the link sending with .mp4 |
| 27 | video_links = [ |
| 28 | archive_url + link["href"] for link in links if link["href"].endswith("mp4") |
| 29 | ] |
| 30 | |
| 31 | return video_links |
| 32 | |
| 33 | |
| 34 | def download_video_series(video_links): |
no test coverage detected