Skip to content

Instantly share code, notes, and snippets.

@ynaoto
Last active March 15, 2022 09:20
Show Gist options
  • Save ynaoto/bc48ba90c985b0b1efdbf1a74f9a9f46 to your computer and use it in GitHub Desktop.
Save ynaoto/bc48ba90c985b0b1efdbf1a74f9a9f46 to your computer and use it in GitHub Desktop.
午後ローDBにアクセスして人気ランキング
#!/bin/sh
API_URL="https://gogoro.api.141-lab.com/api/search?specialTitle="
names="
イーストウッド
スタローン
セガール
ヴァンダ
ニーソン
ハリソン
クルーズ
ノリス
ブロンソン
"
for name in $names
do
#n=$(curl -k -s "$API_URL""$name"| json_pp |grep special_title |wc -l)
#echo $n $name
curl -k -s "$API_URL""$name"| json_pp |awk -v name="$name" '
/broadcast_date/ { print $3 name; }
' |tr -d '"' # use nkf to convert char code to make proper csv file for MS excel
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment