I have to select all html-tags that has class attribute if the class name is in list OR has a style attribute with the specified value.
I tried to solve my problem step by step and I got this:
selected_by_class = soup.find_all(class_=['basic_class', 'other_class'])
selected_by_style = soup.find_all(style='text-align:left')
As you can see, I'm getting all the data in two steps, but the sequence is lost, because I do two independent find_all() requests.
How to do it simultaneously with a single find_all()?