Search
Project
General
Profile
Sign in
Home
Projects
Search
:
A painter and a black cat
All Projects
A painter and a black cat
Overview
Activity
News
Wiki
Files
Download (597 Bytes)
オシャレ定量化コマンドを作ってオシャレ評価してみた
» 20171105_getOshareFromInstagram.sh
kanata
, 04/19/2025 03:03 PM
#!/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
« Previous
1
2
Next »
(1-1/2)
Loading...