Complete the following code to extract an image ‘cover3.jpg’ from the URL ‘http://data.pr4e.org/cover3.jpg’ and host ‘data.pr4e.org’. There are 5 empty spaces.
Write a program that retrives a txt file from ‘https://www.gutenberg.org/files/1342/1342-0.txt’ in several blocks of 100,000 characters, joins them and saves as ‘prideandprejudice.txt’ to disk and prints number of characters.
Write a program that retrives a txt file from ‘https://www.gutenberg.org/files/1342/1342-0.txt’ in several blocks of 100,000 characters, joins them and saves as ‘prideandprejudice.txt’ to disk and prints number of characters.
Write a program that retrives a txt file from ‘https://www.gutenberg.org/files/16/16-0.txt’ in several blocks of 100,000 characters, joins them and saves as ‘peterpan.txt’ to disk and prints number of characters.
Write code that extracts data from several parts of the ‘a’ tag from “http://www.dr-chuck.com/page1.htm” using BeautifulSoup and html.parser and print the tag, href, contents as well as all the attributes.