1
0
Fork 0

Add nocache params to URLs

This commit is contained in:
gg 2023-09-20 21:09:13 -07:00
parent 761f7bf1b0
commit 434e4c2d41
3 changed files with 8 additions and 8 deletions

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
SCHEDULE_URL="https://weathernews.jp/mscale/json/scale.json"
NOCACHE="$(date +%s)"
URL="https://weathernews.jp/mscale/json/scale.json"
DIR="$(date +"%Y/%m")"
OUT="$(date +"$DIR/mscale.%d_%H:%M.json")"
mkdir -p $DIR
curl -s "$SCHEDULE_URL" > $OUT
curl -s "${URL}?nocache=$NOCACHE" > $OUT

View File

@ -1,7 +1,7 @@
#!/bin/bash
NOCACHE="$(date +%s)"
SCHEDULE_URL="https://smtgvs.weathernews.jp/a/solive_timetable/timetable.json"
DIR="$(date +"%Y/%m")"
OUT="$(date +"$DIR/%d_%H:%M.json")"
mkdir -p $DIR
curl -s "$SCHEDULE_URL" > $OUT
curl -s "${SCHEDULE_URL}?nocache=$NOCACHE" > $OUT

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
SCHEDULE_URL="https://site.weathernews.jp/site/live/json/list.json"
NOCACHE="$(date +%s)"
URL="https://site.weathernews.jp/site/live/json/list.json"
DIR="$(date +"%Y/%m")"
OUT="$(date +"$DIR/video.%d_%H:%M.json")"
mkdir -p $DIR
curl -s "$SCHEDULE_URL" > $OUT
curl -s "${URL}?nocache=$NOCACHE" > $OUT