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
"use strict"; | |
// dependencies | |
// npm install axios moment prompt dotenv | |
const axios = require("axios"); | |
const moment = require("moment"); | |
const prompt = require("prompt"); | |
require("dotenv").config(); | |
// configuration |
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
# pip install pytube | |
from pytube import Playlist | |
from pytube import YouTube | |
import sys | |
def convert_sec_to_readable(seconds): | |
minute, second = divmod(seconds, 60) | |
hour, minute = divmod(minute, 60) |
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
sudo apt install curl -y && npm init esnext -y && npm i cross-fetch && npm i -D eslint prettier eslint-plugin-prettier eslint-config-prettier @chainsafe/eslint-plugin-node @overlookmotel/eslint-config-node eslint-config-airbnb @babel/eslint-parser && curl -O https://gist.githubusercontent.com/redwan-hossain/8e9e54c935d4d02b24635a7beeeb6aca/raw/a997f9677f32a33f6a20e07162d6ae1165edc955/.eslintrc.json && curl -O https://gist.githubusercontent.com/redwan-hossain/840d74b8a4d459c0d0752b1340a311d2/raw/ce3f46e3a0f05e733e7fb59e2e01407bb44907cf/.prettierrc.json |
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
{ | |
"tabWidth": 2, | |
"useTabs": true, | |
"semi": true, | |
"singleQuote": false, | |
"trailingComma": "none", | |
"bracketSpacing": false, | |
"arrowParens": "always" | |
} |