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
#!/bin/bash | |
USERNAME=$(whoami) | |
WORKING_DIR=$(pwd) | |
if [ ! -d "$WORKING_DIR" ]; then | |
echo "Working directory $WORKING_DIR does not exist" | |
exit 1 | |
fi |
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
def int_to_emoji(number): | |
digit_emoji = { | |
"0": "0️⃣", | |
"1": "1️⃣", | |
"2": "2️⃣", | |
"3": "3️⃣", | |
"4": "4️⃣", | |
"5": "5️⃣", | |
"6": "6️⃣", | |
"7": "7️⃣", |
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 os | |
import re | |
import time | |
import requests | |
from pytube import YouTube | |
from tqdm import tqdm | |
def download_video(url): | |
yt = YouTube(url) |