|
|
@ -160,11 +160,13 @@ GetBucketV2 | xmlstarlet select -t -m '/ListBucketResult//Contents' -v 'Key' -n |
|
|
|
fi |
|
|
|
fi |
|
|
|
done |
|
|
|
done |
|
|
|
|
|
|
|
|
|
|
|
telegramToken=$(cat $config_file | jq -r .telegramToken) |
|
|
|
telegramToken=$(cat $config_file | jq -r .telegram.telegramToken) |
|
|
|
baseApi="https://api.telegram.org/bot$telegramToken" |
|
|
|
baseApi="https://api.telegram.org/bot$telegramToken" |
|
|
|
chat_id=$(cat $config_file | jq .chatId) |
|
|
|
chat_id=$(cat $config_file | jq .telegram.chatId) |
|
|
|
mode=$(cat $config_file | jq -r .mode) |
|
|
|
mode=$(cat $config_file | jq -r .pixiv.mode) |
|
|
|
content=$(cat $config_file | jq -r .content) |
|
|
|
content=$(cat $config_file | jq -r .pixiv.content) |
|
|
|
|
|
|
|
cookie_param=$(cat $config_file | jq -r .pixiv.cookie_param) |
|
|
|
|
|
|
|
user_agent=$(cat $config_file | jq -r .pixiv.user_agent) |
|
|
|
rank_url="https://www.pixiv.net/ranking.php?mode=$mode&content=$content&p=1&format=json" |
|
|
|
rank_url="https://www.pixiv.net/ranking.php?mode=$mode&content=$content&p=1&format=json" |
|
|
|
today=$(date "+%Y-%m-%d") |
|
|
|
today=$(date "+%Y-%m-%d") |
|
|
|
_today=$(date "+%Y%m%d") |
|
|
|
_today=$(date "+%Y%m%d") |
|
|
@ -216,7 +218,7 @@ for index in $(seq 1 $length); do |
|
|
|
png_html_file=$pid.html |
|
|
|
png_html_file=$pid.html |
|
|
|
if [ ! -f $png_html_file ]; then |
|
|
|
if [ ! -f $png_html_file ]; then |
|
|
|
echo "get data from $artworkLink" |
|
|
|
echo "get data from $artworkLink" |
|
|
|
curl -v $artworkLink >$png_html_file |
|
|
|
curl -v -H "cookie: $cookie_param" -H "user-agent:$user_agent" $artworkLink >$png_html_file |
|
|
|
fi |
|
|
|
fi |
|
|
|
json_file=$pid.json |
|
|
|
json_file=$pid.json |
|
|
|
if [ ! -f $json_file ]; then |
|
|
|
if [ ! -f $json_file ]; then |
|
|
|