networked programs scrape when program pretends to be web browser and retrieves web pagethen looks at the web page content often programs are following the links in one page to find the next page so they can traverse network of pages or social network socket network connection between two applications where the applications can send and receive data in either direction spider the act of web search engine retrieving page and then all the pages linked from page and so on until they have nearly all of the pages on the internet which they use to build their search index exercises exercise change the socket program socket py to prompt the user for the url so it can read any web page you can use split('/'to break the url into its component parts so you can extract the host name for the socket connect call add error checking using try and except to handle the condition where the user enters an improperly formatted or non-existent url exercise change your socket program so that it counts the number of characters it has received and stops displaying any text after it has shown characters the program should retrieve the entire document and count the total number of characters and display the count of the number of characters at the end of the document exercise use urllib to replicate the previous exercise of ( retrieving the document from url( displaying up to charactersand ( counting the overall number of characters in the document don' worry about the headers for this exercisesimply show the first characters of the document contents exercise change the urllinks py program to extract and count paragraph (ptags from the retrieved html document and display the count of the paragraphs as the output of your program do not display the paragraph textonly count them test your program on several small web pages as well as some larger web pages exercise (advancedchange the socket program so that it only shows data after the headers and blank line have been received remember that recv receives characters (newlines and all)not lines