I googled and turned it around, and when I type it in the search box, the scroll bar goes down to the next page, and the scroll bar goes down to the next page, and after about 40 pages, there's no more literature, so I want to put it up at the top.
However, if there are no more pages, then
driver.find_element_by_class_name('load-button.next-page').An error code appears in click() and does not proceed to the next step.
Please answer me.web-crawling python selenium
The first problem is that an error has occurred and then the code is not executed.
If there is no more literature to import, it seems to be an error caused by the disappearance of certain buttons.
Try exception can be used to avoid errors as follows:
© 2022 pinfo. All rights reserved.