Skip to content

Instantly share code, notes, and snippets.

View Tweetus-Bot's full-sized avatar
🏴‍☠️

Tweetu Tweetus-Bot

🏴‍☠️
View GitHub Profile
@Tweetus-Bot
Tweetus-Bot / bulkcopy.py
Last active December 7, 2020 15:21
Noob script to copy files from many gdrive links from a text file
# 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):
@Tweetus-Bot
Tweetus-Bot / search_googlefiles.py
Last active August 12, 2020 09:03
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))