Skip to content

Instantly share code, notes, and snippets.

View KasRoudra's full-sized avatar
🚋
Taking preparation for exam

Roudra Sarker KasRoudra

🚋
Taking preparation for exam
View GitHub Profile
@KasRoudra
KasRoudra / drive-downloader.py
Last active August 2, 2024 17:57
A simple google drive downloader
from requests import get
from bs4 import BeautifulSoup
from sys import argv, stdout
from time import time
from shutil import get_terminal_size
strip = lambda str: str[:min(str.find('?'), str.find('/'))] if '?' in str or '/' in str else str
def download(id, title):
try: