keyword_list = ['motorcycle', 'bike', 'cycle', 'dirtbike'] if any(word in all_text for word in keyword_list): print 'found one of em'