Home > other > The crawler xpath in the process of positioning error problem, not a common error
The crawler xpath in the process of positioning error problem, not a common error
Time:09-20
Using Python + selenium + Chrome, crawler, element positioning is to use xpath relative path, when crawl web content the first page, positioning elements have no problem, the normal climb in content, but on the following page automatically after the prompt can't locate elements (crawl is a web page in the form and the content of the box, box before and after two pages form xpath relative paths are the same), the first page is normal, what reason is the second page is error?
CodePudding user response:
Selenium page information, it is best to have the appropriate time delay, so that the browser completely the background page