Mridul Sachan
Mridul Sachan

Reputation: 93

How to find similarity between meta description of a URL and an article?

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

Answers (1)

Shoval Shalev
Shoval Shalev

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

Related Questions