Created
September 1, 2020 11:05
-
-
Save kshirsagarsiddharth/c6f5daf4f58a968ee84c3676ddfe8ffd to your computer and use it in GitHub Desktop.
crawler2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Crawler(threading.Thread): | |
| def __init__(self,base_url, links_to_crawl,have_visited, error_links,url_lock): | |
| threading.Thread.__init__(self) | |
| print(f"Web Crawler worker {threading.current_thread()} has Started") | |
| self.base_url = base_url | |
| self.links_to_crawl = links_to_crawl | |
| self.have_visited = have_visited | |
| self.error_links = error_links | |
| self.url_lock = url_lock |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment