Created
January 27, 2016 09:11
-
-
Save daog1/692e5f65c9da82f7b58c to your computer and use it in GitHub Desktop.
爬虫使用浏览器
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
def __init__(self): | |
CrawlSpider.__init__(self) | |
self.browser = webdriver.Firefox() | |
def __del__(self): | |
self.browser.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment