1.获取子标签: thr_msgs = soup.find_all('div',class_=re.compile('msg')) for i in thr_msgs: print (i) first ...
result: .<a class="sister" href="http://example.com/elsie" id="xiaodeng"><!-- Elsie --></a><a class="sister" href="http ...
Python标准库 BeautifulSoup(markup, "html.parser") ...