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

请问在使用打开网页操作时,如何设定打开的网页等于一个定义好的变量 #663

Open
ChulingHuang opened this issue Jan 14, 2025 · 0 comments

Comments

@ChulingHuang
Copy link

在循环翻页爬的时候,偶尔会出现网站报错,但是翻到下一页会恢复正常。由于网站报错,无法点击下一页,我想到的办法是先提取网站URL,把URL最后的数字增加一位(page=2改成page=3),然后再重新load URL。前面的操作通过Chatgpt差不多搞出来了,把新的URL定义为一个叫newurl的变量,但是不知道要怎么load新的URL。非常感谢您的帮助!

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