We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
当搜索到的商品不满一页时会出错,在开始爬取信息前,您应加上这些代码。
err1 = self.browser.find_element_by_xpath("//*[@id='content']/div/div[2]").text err1 = err1[:5] if(err1 == "喵~没找到"): print("出错了"); return try: self.browser.find_element_by_xpath("//*[@id='J_ComboRec']/div[1]") err2 = self.browser.find_element_by_xpath("//*[@id='J_ComboRec']/div[1]").text #print(stt) err2 = err2[:5] if(err2 == "我们还为您"): print("出错了") return
The text was updated successfully, but these errors were encountered:
No branches or pull requests
当搜索到的商品不满一页时会出错,在开始爬取信息前,您应加上这些代码。
The text was updated successfully, but these errors were encountered: