您可以使用CSS选择器来匹配许多类:
from bs4 import BeautifulSoup as souphtml = '''<tr ></tr><tr ></tr>'''soup = soup(html, 'lxml')res = soup.select('tr.admin-bookings-table-row.bookings-history-row.paid')print(res)>>> [<tr ></tr>]
欢迎分享,转载请注明来源:内存溢出
您可以使用CSS选择器来匹配许多类:
from bs4 import BeautifulSoup as souphtml = '''<tr ></tr><tr ></tr>'''soup = soup(html, 'lxml')res = soup.select('tr.admin-bookings-table-row.bookings-history-row.paid')print(res)>>> [<tr ></tr>]
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)