【发布时间】:2020-01-10 06:13:32
【问题描述】:
我有 html 页面,代码如下:
<span itemprop="title" data-andiallelmwithtext="15" aria-current="page" aria-label="you in page
number 452">page 452</span>
我想找到 aria-label,所以我尝试了这个:
is_452 = soup.find("span", {"aria-label": "you in page number 452"})
print(is_452)
我想得到结果:
is_452 =page 452
我得到了结果:
is_452=none
怎么做?
【问题讨论】:
标签: python-3.x selenium beautifulsoup find