Mass Downloader Objectives: 1. Learn how to Retrieve objects over an HTTP connection. 2. Learn how to extract links from and an HTML file. Equipment and Software Tools Required: 1. PYTHON 2. urllib...


Mass Downloader<br>Objectives:<br>1. Learn how to Retrieve objects over an HTTP connection.<br>2. Learn how to extract links from and an HTML file.<br>Equipment and Software Tools Required:<br>1. PYTHON<br>2. urllib module<br>3. regex module<br>Introduction:<br>In some cases, you reach a website that has a list of objects (links) you want to download. This<br>could be a course website with a list of the slides in PDF format. Therefore, you can use an<br>application or browser extension that provides mass or batch downloading, such as Flashget<br>and Chrono Download Manager. Those applications/extensions extract all links from the<br>HTML file, give you the option to select the ones to download, and it will download all selected<br>objects. In this lab exercise, you are going to write a script that will work as a mass downloader.<br>Requirements<br>In this exercise, the learner should write a mass downloader script. The script should<br>download all links of a certain type from a given website.<br>Therefore, the script should do the following:<br>• Ask a user for a valid URL address.<br>• Download the HTML file of that address.<br>• Extract all URLS from the HTML file.<br>• Ask the user to select a file type (use .pdf file type).<br>Retrieve the objects of all links that match the selected file type.<br>

Extracted text: Mass Downloader Objectives: 1. Learn how to Retrieve objects over an HTTP connection. 2. Learn how to extract links from and an HTML file. Equipment and Software Tools Required: 1. PYTHON 2. urllib module 3. regex module Introduction: In some cases, you reach a website that has a list of objects (links) you want to download. This could be a course website with a list of the slides in PDF format. Therefore, you can use an application or browser extension that provides mass or batch downloading, such as Flashget and Chrono Download Manager. Those applications/extensions extract all links from the HTML file, give you the option to select the ones to download, and it will download all selected objects. In this lab exercise, you are going to write a script that will work as a mass downloader. Requirements In this exercise, the learner should write a mass downloader script. The script should download all links of a certain type from a given website. Therefore, the script should do the following: • Ask a user for a valid URL address. • Download the HTML file of that address. • Extract all URLS from the HTML file. • Ask the user to select a file type (use .pdf file type). Retrieve the objects of all links that match the selected file type.

Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here