プロジェクト

全般

プロフィール

オシャレ定量化コマンドを作ってオシャレ評価してみた » 20171105_getOshareFromInstagram.sh

kanata, 2025/04/19 15:03

 
#!/bin/bash

# オシャレ測定コマンド

while [ "$1" != "" ]
do
# instagramからお洒落ポイントを取得
#POINT=`curl -s curl -s https://www.instagram.com/explore/tags/${1}/|tr ',' '\n'|grep count|grep entry_data|awk -F':' '{print $NF}'`
POINT=`curl -s https://www.instagram.com/explore/tags/${1}/|tr ',' '\n'|grep count\" |grep -v likes|grep -v comments|cut -d' ' -f3`
# 表示位置調整のための小細工
if [ `echo "${1}"|wc -m` -le 4 ]
then
WORD="${1} "
else
WORD="${1}"
fi
printf "%.15s\t%'10d osare\n" "${WORD}" "${POINT}"
shift
done

exit 0
(1-1/2)