"texts = driver.find_elements(By.TAG_NAME, "body")\n\n attributes = [single_input.get_attribute("outerHTML") for single_input in inputs]\n texts = [text.text for text in texts]\n为什么生成的 texts 只有一个元素内容:这可能是因为driver.find_elements(By.TAG_NAME, \"body\")只找到了一个<body>元素。


原文地址: https://www.cveoy.top/t/topic/p9az 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录