forked from gg/WeatherNews.jl
Add nocache params to URLs
This commit is contained in:
parent
761f7bf1b0
commit
434e4c2d41
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue