Skip to content

Instantly share code, notes, and snippets.

@daog1
Created January 27, 2016 09:11
Show Gist options
  • Save daog1/692e5f65c9da82f7b58c to your computer and use it in GitHub Desktop.
Save daog1/692e5f65c9da82f7b58c to your computer and use it in GitHub Desktop.
爬虫使用浏览器
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