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 (373 Bytes)
オシャレ定量化コマンドを作ってオシャレ評価してみた
» 20200620_getOshareFromInstagram.sh
別の仕組みにしました -
kanata
, 04/19/2025 03:03 PM
#!/bin/bash
# オシャレ測定コマンド ver 2.0
while
[
"
$1
"
!=
""
]
do
curl
-s
"https://top-hashtags.com/search/?q=
${
1
}
&opt=top"
|grep
class
=
\"
i-paging|
\
sed
's/><a/>\n<a/g'
|sed
-e
's/<[^>]*>/ /g'
|awk
'{print $1,$2}'
|grep
"^#"
|
\
sed
-e
's/^#//g'
|numfmt
--from
=
si
--field
=
2|printf
"%.20s
\t
%'10d osare
\n
"
$(
cat
)
|
\
head
-1
shift
sleep
2
done
exit
0
« Previous
1
2
Next »
(2-2/2)
Loading...