Python BeautifulSoup give multiple tags to findAll

You could pass a list, to find any of the given tags:

tags = soup.find_all(['hr', 'strong'])

Leave a Comment