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