This file contains hidden or 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
# credits: regex101.com, t.me/wfjpwf for the replace thing. (line no. 11) | |
# fsymbols.com/generators/carty this is where I got the ascii art. | |
# Inspiration: https://github.com/BlackPearl-Forum/Blackpearl-Link-Creator/blob/361ca418ca253be895c6db26d7f3ab5549b59954/links.py (such a neat code!) | |
import re, sys, os | |
def file_id(file): | |
regex = r"[\w-]{33}" | |
matches = re.finditer(regex, links, re.MULTILINE) | |
for matchNum, match in enumerate(matches, start=1): |
This file contains hidden or 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)) |