Last active
March 15, 2022 09:20
-
-
Save ynaoto/bc48ba90c985b0b1efdbf1a74f9a9f46 to your computer and use it in GitHub Desktop.
午後ローDBにアクセスして人気ランキング
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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