Skip to content

Instantly share code, notes, and snippets.

@Tweetus-Bot
Last active August 12, 2020 09:03
Show Gist options
  • Save Tweetus-Bot/2519f60879befc589ee8e59f3b513a55 to your computer and use it in GitHub Desktop.
Save Tweetus-Bot/2519f60879befc589ee8e59f3b513a55 to your computer and use it in GitHub Desktop.
Usage: python search_googlefiles.py
import re
link = input("Enter your link here: ")
file_name = input("Enter your file name with extension: ")
regex = r"\b1+\w+"
file_id = re.search(regex, link)
print ("Here is your link: http://search.googlefiles.workers.dev/{id}/{file}".format(id = file_id.group(), file = file_name))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment