我需要根据所附图像提取 md-card 容器中的上下文。 我只需要将摘录作为文本或任何格式。 我试过使用 bs 但它不起作用。 请建议一种方法来完成这项工作。 谢谢。
导入请求 从 bs4 导入 BeautifulSoup
page = requests.get('https://www.plugshare.com/location/81189')
soup = BeautifulSoup(page.content, 'html.parser')
#x = soup.find_all('div')
x = soup.find_all('md-card')
#print(page.status_code)
print(x)