标签: html beautifulsoup
如果我有这条线:
all_posts = soup.find_all('div',{'class': 'post'})
是否有相当于这个伪造的代码:
for post in all_posts: user = post.find('a',{'class':'user123'}) content = post.find('span',{'class':'content123'})
提前致谢!