在BeautifulSoup中,我能够找到必要的填充字段和value变量的值
with open("output.html", encoding= 'UTF-8') as a file:
src = file.read ()
# print (src)
soup = beautiful soup(src, "lxml")
res=soup.findAll(class_= "src-components-Spoiler-Spoiler-module_ _ content")
for me in res:
name_id ="Package Nd fl 3. payload.sheet B. sources[0].the name of the source of income"
if I.I will find( id=name_id)!= No:
print(i.find( id=name id)['value']) # company
但不可能在硒中找到这一领域。 请告诉我如何正确地做
res= driver.find_elements_by_class_name("src-components-Spoiler-Spoiler-module__content")
name_id ="Ndfl3Package.payload.sheetB.sources[0].incomeSourceName"
# print((res))
lenres= len(res)
for i in range(lenres):
print(res[i].find_element_by_id(id=name_id))
目前没有回答
相关问题 更多 >
编程相关推荐