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
import { DOMParser } from "https://deno.land/x/deno_dom/deno-dom-wasm.ts"; | |
const capitalize = str => str.charAt(0).toLocaleUpperCase("tr-TR") + str.slice(1).toLocaleLowerCase("tr-TR"); | |
const parser = new DOMParser(); | |
const fetchDocument = path => fetch("https://www.nufusune.com/" + path) | |
.then(response => response.text()) | |
.then(text => parser.parseFromString(text, "text/html")); | |
const indexOfDistricts = await fetchDocument("ilceler"); |
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
#!/bin/bash | |
function print_help_message() { | |
echo "Extracts audios from the videos in a given playlist using yt-dlp and GNU parallel" | |
echo | |
echo "USAGE: ${0} [options] <playlist_id>" | |
echo | |
echo "OPTIONS:" | |
echo "-h, --help Print this message." | |
echo "-o, --output DIR Download videos to DIR" |