【发布时间】:2020-09-24 23:15:25
【问题描述】:
我想通过此链接返回 MeSH 列中的所有值:https://ii.nlm.nih.gov/cgi-bin/II/Interactive/checkPubMed.pl。 该链接不存储搜索结果,因此要访问实际链接,请转到此处https://ii.nlm.nih.gov/Interactive/MTI/phrase2mesh.shtml 并搜索“杆状病毒”并按提交。
driver.get('https://ii.nlm.nih.gov/Interactive/MTI/phrase2mesh.shtml')
#excluded code here but basically input "baculovirus" into the search bar and search
#brings you to this link https://ii.nlm.nih.gov/cgi-bin/II/Interactive/checkPubMed.pl
table = WebDriverWait(driver,10).until(EC.presence_of_element_located((By.TAG_NAME,"table")))
for row in table(3): #to get the third column of the table
print(row.text)
不知道如何前进,任何帮助将不胜感激!
【问题讨论】:
-
您好,您希望输出是什么?
标签: python selenium xpath css-selectors webdriverwait