Checkout my article on explaining about this script. medium.com/swlh/this-way-i-checked-hundreds-of-plagiarized-answers-in-seconds
checkout demo.py
for seeing use case of the script
It contains Two functions
- googleSearch() to perform google search
- compareStr() to compare two strings
Example:
googleSearch("hello")
It works by searching on google the string we gave in argument and collect following items of each result.
- domain
- url
- title
- description
This items of each search result are returned if form of dictionary.
compareStr("hello world","hello you")
output: 70.0
This function returns percentage of match between 2 strings given in arguments.