Last active
August 12, 2020 09:03
-
-
Save Tweetus-Bot/2519f60879befc589ee8e59f3b513a55 to your computer and use it in GitHub Desktop.
Usage: python search_googlefiles.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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