Dnomd343
2 years ago
5 changed files with 46 additions and 80 deletions
@ -0,0 +1,6 @@ |
|||
#!/usr/bin/env bash |
|||
|
|||
cd "$(dirname "$0")" |
|||
|
|||
diff <(xz -cdk ./archive/catalog.json.xz | jq .) <(jq . ./data/catalog.json) |
|||
diff <(xz -cdk ./archive/xxrs.json.xz | jq .) <(jq . ./data/xxrs.json) |
@ -1,17 +1,11 @@ |
|||
#!/usr/bin/env bash |
|||
|
|||
cd `dirname $0` |
|||
cd "$(dirname "$0")" |
|||
mkdir -p ./data/html/ |
|||
|
|||
python3 catalog.py > ./data/catalog.json |
|||
python3 fetch.py ./data/catalog.json ./data/html/ |
|||
python3 extract.py ./data/catalog.json ./data/html/ > ./data/xxrs.json |
|||
|
|||
cd ./data/ |
|||
xz -k9 catalog.json |
|||
tar cJf html.tar.xz html/ |
|||
xz -k9 xxrs.json |
|||
[ -z "${DELAY}" ] && DELAY=1 |
|||
[ -z "${THREAD}" ] && THREAD=1 |
|||
|
|||
mkdir -p ../archive/ |
|||
mv *.xz ../archive/ |
|||
cd ../ |
|||
python3 catalog.py "" > ./data/catalog.json |
|||
python3 fetch.py ./data/catalog.json ./data/html/ "${PROXY}" ${THREAD} ${DELAY} |
|||
python3 extract.py ./data/catalog.json ./data/html/ > ./data/xxrs.json |
|||
|
Loading…
Reference in new issue