#浏览器连接步骤省略... if WebDriverWait(driver, 15).until( lambda x: x.find_element(By.XPATH,'//*[@id="mini-grid-table-bodysqhdxxGridxx"]')): pass time.sleep(2) #输入想要拿到的html的xpath table = driver.find_element(By.XPATH,'//*[@id="mini-grid-table-bodysqhdxxGridxx"]') time.sleep(2) html_text = table.get_attribute('innerHTML') print(html_text)
seleninm 获取动态网页htlm
最新推荐文章于 2024-08-29 15:58:04 发布
关键词由CSDN通过智能技术生成