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

多页爬取后仍有循环重复 #3

Open
bruce4research opened this issue Nov 20, 2020 · 0 comments
Open

多页爬取后仍有循环重复 #3

bruce4research opened this issue Nov 20, 2020 · 0 comments

Comments

@bruce4research
Copy link

您好,我重新改写了一下程序,测试了前200页没问题了。麻烦您重新帮我测试一下SXSpider2,如果出现视频那种情况,您可以手动点击一下公告列表中的“展开详情”,应该就可以了。

Originally posted by @frederichchen in #1 (comment)

hi 感谢您的代码。前面运行的确没问题。但是后面手动点击了“展开详情”之后,貌似更新了一页,但是又回到之前循环重复中去了。此时,页码数在增加,但是信息未更新。
在多次尝试手动点击“展开详情”后,报错如下。

获取第565页的数据...

获取第566页的数据...

获取第567页的数据...
Traceback (most recent call last):
File "C:/Users/Administrator/ToySpiders/SXSpider2/SXSpider.py", line 112, in
sp.fetch_data( )
File "C:/Users/Administrator/ToySpiders/SXSpider2/SXSpider.py", line 98, in fetch_data
ActionChains(self.driver).click(next_btn).perform()
File "C:\Users\Administrator\Anaconda3\lib\site-packages\selenium\webdriver\common\action_chains.py", line 80, in perform
self.w3c_actions.perform()
File "C:\Users\Administrator\Anaconda3\lib\site-packages\selenium\webdriver\common\actions\action_builder.py", line 76, in perform
self.driver.execute(Command.W3C_ACTIONS, enc)
File "C:\Users\Administrator\Anaconda3\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "C:\Users\Administrator\Anaconda3\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.JavascriptException: Message: javascript error: Failed to execute 'elementsFromPoint' on 'Document': The provided double value is non-finite.
(Session info: chrome=87.0.4280.66)

Process finished with exit code 1

特别感谢。期待更新。

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

1 participant