atags = soup.find_all('a', {'class': 'add_to_compare'})
links = [atag['href'] for atag in atags]
keywords = ['adidas', 'thenextdoor', 'Uncaged']
for link in links:
    if all(keyword in link for keyword in keywords):
        pass
Scraping for href links