我正在尝试使用 Python、BeautifulSoup 和 Selenium 从 Quora 中提取数据以进行分析。但我无法提取页面上的 JavaScript 元素。我应该如何提取它们?
在这里,我只是试图提取 Quora 个人资料的简历,但我没有收到点击“更多”按钮后出现的文本。
# Extracting Bio
driver.find_element_by_class_name('ui_qtext_more_link').send_keys(Keys.ENTER)
bio = driver.find_element_by_class_name("ui_qtext_rendered_qtext").text