Question: Assignment Add an optional parameter limit with a default of 10 to crawl ( function which is the maximum number of web pages to download
Assignment Add an optional parameter limit with a default of 10 to crawl ( function which is the maximum number of web pages to download Save files to pages dir using the MDS hash of the page's URL import hashlib filename 'pages/" + hashlib.md5(url.encode().hexdigest()+'html" Only crawl URLs that are in landmark.edu domain (.landmark.edu) Use a regular expression when examining discovered links import re p re.compile(ab*) if p.match(abc'): print("yes") Submit working program to Blackboard
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
