Created
October 19, 2010 11:39
-
-
Save copyninja/634062 to your computer and use it in GitHub Desktop.
Simple Driver program for Crawler
This file contains 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
#!/usr/local/bin/python3 | |
from crawler import Crawler | |
def crawling_done(url): | |
print(("Crawling {} done".format(url))) | |
if __name__ == "__main__": | |
c = Crawler(crawling_done,"http://kn.wikipedia.com/wiki/Karnataka","kn_IN") | |
c.crawl() | |
c.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment