Python BeautifulSoup give multiple tags to findAll
Solution 1:
You could pass a list, to find any of the given tags:
tags = soup.find_all(['hr', 'strong'])
Solution 2:
Use regular expressions:
import re
get_tags = soup.findAll(re.compile(r'(hr|strong)'))
The expression r'(hr|strong)'
will find either hr
tags or strong
tags.