If any keyword from an array is mentioned in the title, don't click the title. If the title doesn't mention any of the keywords click the title.
Right now it clicks all the time, and I know why but I don't know how to fix it. It always clicks because it goes through the whole array and eventually there is a keyword that is not in the title. Ideas?
arr = ["bunny", "watch", "book"]
title = ("The book of coding. (e-book) by Seb Tota").lower()
length = len(arr)
for i in range(0,length - 1):
if arr[i] in title:
print "dont click"
else:
print "click"
This should not click the title because arr[2] is in the title