使用select获取标签的文本列表。如res=[x.text for x in soup.select('tr td a')]
soup=BeaufifulSoup(r.text,'lxml') new_soup.find('table', class_='local') # 然后用 new_soup.find_all('需要的标签')