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 |
#!/usr/bin/env bash |
||||
|
|
||||
cd `dirname $0` |
cd "$(dirname "$0")" |
||||
mkdir -p ./data/html/ |
mkdir -p ./data/html/ |
||||
|
|
||||
python3 catalog.py > ./data/catalog.json |
[ -z "${DELAY}" ] && DELAY=1 |
||||
python3 fetch.py ./data/catalog.json ./data/html/ |
[ -z "${THREAD}" ] && THREAD=1 |
||||
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 |
|
||||
|
|
||||
mkdir -p ../archive/ |
python3 catalog.py "" > ./data/catalog.json |
||||
mv *.xz ../archive/ |
python3 fetch.py ./data/catalog.json ./data/html/ "${PROXY}" ${THREAD} ${DELAY} |
||||
cd ../ |
python3 extract.py ./data/catalog.json ./data/html/ > ./data/xxrs.json |
||||
|
Loading…
Reference in new issue