Reputation: 93
I have an article stored in .txt file, and i am fetching meta description of various articles from the web by giving some search queries to Google. I need to compare meta description and article. Which technique should i use to do this??
Upvotes: 0
Views: 97
Reputation: 1
You can try using the IN function to see if strings exits.
For example:
lorem = "Lorem ipsum dolor sit amet, consectetur adipiscing elit."
if "Dr.Evil" in lorem:
print("Found it")
else:
print("Didn't find it")
Upvotes: 0