ported list download code to JS

This commit is contained in:
Viet Huynh
2023-09-17 16:48:34 +07:00
parent 083335278c
commit 245cc2e8cf
7 changed files with 42 additions and 22 deletions
+2 -4
View File
@@ -1,7 +1,5 @@
#!/bin/bash
source $(dirname "$0")/lib/helpers.sh
# declare an array of urls
urls=(
https://raw.githubusercontent.com/mullvad/dns-blocklists/main/output/doh/doh_adblock.txt
@@ -13,7 +11,7 @@ urls=(
)
# download all files in parallel and append them to input.csv
download_lists $urls 'input.csv'
node download_files.js blocklist.txt ${urls[@]}
# print a message when done
echo "Done. The input.csv file contains merged data from recommended filter lists."
echo "Done. The blocklist.txt file contains merged data from recommended filter lists."