web1, web2 and web3 is three different websites I am scraping from. 
I want to see if they contain the names of company1, company2 or company3. This worked perfectly before but is not working at the moment. Print(matches) returns all the companies like this ['company1', 'company2', 'company3']. When I print web1, web2 and web3 I am able to see that they do not contain any of the names of the companies. This is the code:
companies = [ 'company1', 'company2', 'company3' ]
matches = [ x for x in companies if x in web1 or web2 or web3 ]
print(matches)
When I change matches to only one source at the time, it shows no found names of companies. The problem appears when I try to search for the names of the companies in multiple sources at the same time. All help is appreciated.
 
     
     
    