我有下面的HTML
<div class="ui_columns is-gapless is-mobile">
<div class="ui_column is-4 providerLogoOuter">
<span class="providerLogoInner" title=""><imgsrc="https://static.tacdn.com/img2/branding/hotels/Hoteiscom_384x164.png" class="providerImg" alt="Hoteis.com">
但我只需要酒店网站“从alt=
我想用BeautifulSoap得到它,但是我怎样才能得到这个元素呢?你知道吗
name_player = soup.find_all(class_='providerLogoInner')[0]
它不返回任何元素
那是格式错误的html还是打字错误?你知道吗
输出:
你可以做:
相关问题 更多 >
编程相关推荐