direct download

I figured how to turn the google drive link into a direct download link, so it downloads the file instead of pulling up a the html page to view the document. I can parse the shared link to pull the file ID and apply the id to the url pattern that will directly download the file. My sample file will download successfully using this new link. However, when i parse the url after I apply urlretrieve(), I see the instance of the file so I know that it's been created, it doesn't show the name or file type. I just get numbers where the file name & type would be (as in the case of the dropbox download). So i can't validate if a text file has been downloaded or prevent a jpg file from being downloaded into the application. I'm going to try to get this working, and I'm still working on a pop-up dialogue box that takes in an direct download link URL.