from docx import Document

if __name__ == "__main__":
    if sys.args[0] == 0:
        print("Must specify file!")
        return
    #open the docx (and docx only)
    document = Document(sys.args[0])
    #for each paragraph on the docx
    for parag in document.paragraphs:
        #extract the string
        text = parag.text
        #split at whitespace
        splitted = text.split()
        #send to google every 5~10 words and save the url of the first Y results (parallelism preferrable, bandwidth is not a big problem, the old http protocol is)
        #count the ocurrences of each URL
        #create a ratio based on the size of the document and the times an URL can appear
        #if a given URL goes beyond that ratio, it's plagiarized

Add first file Only read a .docx until now
Add first file
Only read a .docx until now
