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
| from pydeezer.constants import track_formats | |
| from pydeezer import Deezer, Downloader | |
| import readline | |
| import glob | |
| import os | |
| # Setup path autocomplete | |
| def completer(text, state): | |
| line = readline.get_line_buffer().split() |
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 subprocess as sp | |
| import requests | |
| import readline | |
| import glob | |
| import os | |
| import re | |
| # Setup path autocomplete | |
| def completer(text, state): |
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
| "use strict"; | |
| const sleep = (ms) => { | |
| return new Promise((resolve) => setTimeout(resolve, ms)); | |
| }; | |
| const getUrl = async (page) => { | |
| page.scrollIntoViewIfNeeded(); | |
| const img = page.querySelector("img"); | |
| await sleep(100); |
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
| #include <fstream> | |
| #include <iostream> | |
| std::string minimize(std::string s) { | |
| std::string res; | |
| for (char c : s) | |
| if ((std::string("[],.<>+-")).find(c) != std::string::npos) | |
| res += c; | |
| return res; |
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 | |
| function urldecode() { : "${*//+/ }"; echo -e "${_//%/\\x}"; } | |
| if [ "$1" = "" ]; then | |
| echo "Usage: $(basename $0) <audiobook url> <output dir - optional>" | |
| exit 1 | |
| fi | |
| book_url=$1 |