curl -s "http://www1.river.go.jp/cgi-bin/DspDamData.exe?ID=1368080700010&KIND=3&PAGE=0" \
| xmllint --html --xpath 'string(/html/body/center/p[1]/a/@href)' - \
| sed 's;^/;http://www1.river.go.jp/;;' \
| xargs -n 1 curl -s \
| iconv -f sjis -t utf8 \
| sed 's/^#//' \
| awk 'NR==7 || NR>9{print $0}' > sameura.csv
More than 1 year has passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme