我正在尝试使用 BeautifulSoup 按 CSS 类查找标签。阅读文档并尝试不同的方法,但以下代码返回new_elem : []。你能帮我理解我做错了什么吗?谢谢。
import requests
from bs4 import BeautifulSoup
url = "https://solanamonkeysclub.com/#/#mint"
response = requests.get(url)
response.encoding = response.apparent_encoding
soup = BeautifulSoup(response.text, 'html.parser')
new_elems = str(soup.select('.ant-card-body'))
print(f'{"new_elem":10} : {new_elems}')