Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

downloader异常 #74

Open
wittyprince opened this issue Apr 8, 2018 · 1 comment
Open

downloader异常 #74

wittyprince opened this issue Apr 8, 2018 · 1 comment

Comments

@wittyprince
Copy link

ERROR 2018-04-06 19:45:13,705 downloaders 42787 139981865047872 Message: Unable to locate element: {"method":"xpath","selector":"//div[@Class='txt-box']/p[@Class='info']/label"}
Stacktrace:
at FirefoxDriver.prototype.findElementInternal_ (file:///tmp/tmpbmGJMJ/extensions/[email protected]/components/driver-component.js:10723)
at FirefoxDriver.prototype.findElement (file:///tmp/tmpbmGJMJ/extensions/[email protected]/components/driver-component.js:10732)
at DelayedCommand.prototype.executeInternal_/h (file:///tmp/tmpbmGJMJ/extensions/[email protected]/components/command-processor.js:12614)
at DelayedCommand.prototype.executeInternal_ (file:///tmp/tmpbmGJMJ/extensions/[email protected]/components/command-processor.js:12619)
at DelayedCommand.prototype.execute/< (file:///tmp/tmpbmGJMJ/extensions/[email protected]/components/command-processor.js:12561)
Traceback (most recent call last):
File "/home/wangchen/wechat-spider/wechat/downloaders.py", line 102, in download_wechat
if self.visit_wechat_topic_list(wechatid):
File "/home/wangchen/wechat-spider/wechat/downloaders.py", line 188, in visit_wechat_topic_list
element_wechat = browser.find_element_by_xpath("//div[@Class='txt-box']/p[@Class='info']/label")
File "/usr/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 258, in find_element_by_xpath
return self.find_element(by=By.XPATH, value=xpath)
File "/usr/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 712, in find_element
{'using': by, 'value': value})['value']
File "/usr/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 201, in execute
self.error_handler.check_response(response)
File "/usr/lib/python2.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 194, in check_response
raise exception_class(message, screen, stacktrace)
NoSuchElementException: Message: Unable to locate element: {"method":"xpath","selector":"//div[@Class='txt-box']/p[@Class='info']/label"}
Stacktrace:
at FirefoxDriver.prototype.findElementInternal_ (file:///tmp/tmpbmGJMJ/extensions/[email protected]/components/driver-component.js:10723)
at FirefoxDriver.prototype.findElement (file:///tmp/tmpbmGJMJ/extensions/[email protected]/components/driver-component.js:10732)
at DelayedCommand.prototype.executeInternal_/h (file:///tmp/tmpbmGJMJ/extensions/[email protected]/components/command-processor.js:12614)
at DelayedCommand.prototype.executeInternal_ (file:///tmp/tmpbmGJMJ/extensions/[email protected]/components/command-processor.js:12619)
at DelayedCommand.prototype.execute/< (file:///tmp/tmpbmGJMJ/extensions/[email protected]/components/command-processor.js:12561)

@yijingping
Copy link
Member

yijingping commented Apr 10, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants