安全客&FREEBUF 文章阅读量似乎有点问题,随手写个脚本测试一下,其中freebuf那篇文章是很老的文章了,居然阅读量还是嗖嗖的涨...
下次是不是可以写个折线图分析一下,看看每次加的是不是有规律的?
➜ scripts cat freebufcurl.sh
#!/bin/bash
while :
do
number=`curl -s www.freebuf.com/articles/terminal/160041.html |grep -o "<strong>.*</strong>人围观"`
nowtime=`date`
echo $nowtime, $number
done
➜ scripts cat anquankecurl.sh
#!/bin/bash
while :
do
number=`curl -s https://www.anquanke.com/post/id/105342 |grep "<b>.*</b>"`
nowtime=`date`
echo $nowtime, $number
done
结果:
➜ scripts bash freebufcurl.sh
Wed Apr 25 20:19:06 DST 2018, <strong>405666</strong>人围观
Wed Apr 25 20:19:07 DST 2018, <strong>405696</strong>人围观
Wed Apr 25 20:19:08 DST 2018, <strong>405711</strong>人围观
Wed Apr 25 20:19:10 DST 2018, <strong>405747</strong>人围观
Wed Apr 25 20:19:11 DST 2018, <strong>405795</strong>人围观
Wed Apr 25 20:19:12 DST 2018, <strong>405805</strong>人围观
Wed Apr 25 20:19:13 DST 2018, <strong>405826</strong>人围观
Wed Apr 25 20:19:15 DST 2018, <strong>405854</strong>人围观
Wed Apr 25 20:19:16 DST 2018, <strong>405898</strong>人围观
Wed Apr 25 20:19:17 DST 2018, <strong>405946</strong>人围观
Wed Apr 25 20:19:20 DST 2018, <strong>405991</strong>人围观
Wed Apr 25 20:19:21 DST 2018, <strong>406011</strong>人围观
Wed Apr 25 20:19:23 DST 2018, <strong>406050</strong>人围观
Wed Apr 25 20:19:24 DST 2018, <strong>406099</strong>人围观
Wed Apr 25 20:19:25 DST 2018, <strong>406110</strong>人围观
Wed Apr 25 20:19:27 DST 2018, <strong>406136</strong>人围观
Wed Apr 25 20:19:28 DST 2018, <strong>406176</strong>人围观
Wed Apr 25 20:19:30 DST 2018, <strong>406224</strong>人围观
Wed Apr 25 20:19:32 DST 2018, <strong>406252</strong>人围观
Wed Apr 25 20:19:33 DST 2018, <strong>406262</strong>人围观
Wed Apr 25 20:19:34 DST 2018, <strong>406298</strong>人围观
Wed Apr 25 20:19:35 DST 2018, <strong>406344</strong>人围观
Wed Apr 25 20:19:37 DST 2018, <strong>406391</strong>人围观
Wed Apr 25 20:19:38 DST 2018, <strong>406433</strong>人围观
Wed Apr 25 20:19:40 DST 2018, <strong>406449</strong>人围观
Wed Apr 25 20:19:41 DST 2018, <strong>406483</strong>人围观
Wed Apr 25 20:19:43 DST 2018, <strong>406510</strong>人围观
➜ scripts bash anquankecurl.sh
Wed Apr 25 20:21:03 DST 2018, <b>21023</b>
Wed Apr 25 20:21:04 DST 2018, <b>21072</b>
Wed Apr 25 20:21:06 DST 2018, <b>21072</b>
Wed Apr 25 20:21:07 DST 2018, <b>21116</b>
Wed Apr 25 20:21:08 DST 2018, <b>21145</b>
Wed Apr 25 20:21:09 DST 2018, <b>21152</b>
Wed Apr 25 20:21:10 DST 2018, <b>21168</b>
Wed Apr 25 20:21:12 DST 2018, <b>21201</b>
Wed Apr 25 20:21:13 DST 2018, <b>21250</b>
Wed Apr 25 20:21:14 DST 2018, <b>21286</b>
Wed Apr 25 20:21:15 DST 2018, <b>21311</b>
Wed Apr 25 20:21:17 DST 2018, <b>21347</b>
Wed Apr 25 20:21:18 DST 2018, <b>21378</b>
Wed Apr 25 20:21:19 DST 2018, <b>21392</b>
Wed Apr 25 20:21:20 DST 2018, <b>21435</b>
Wed Apr 25 20:21:22 DST 2018, <b>21465</b>
Wed Apr 25 20:21:23 DST 2018, <b>21478</b>
Wed Apr 25 20:21:24 DST 2018, <b>21491</b>
Wed Apr 25 20:21:25 DST 2018, <b>21521</b>
Wed Apr 25 20:21:26 DST 2018, <b>21556</b>
Wed Apr 25 20:21:28 DST 2018, <b>21576</b>
Wed Apr 25 20:21:29 DST 2018, <b>21593</b>
Wed Apr 25 20:21:30 DST 2018, <b>21641</b>
Wed Apr 25 20:21:32 DST 2018, <b>21662</b>
Wed Apr 25 20:21:33 DST 2018, <b>21675</b>
Wed Apr 25 20:21:34 DST 2018, <b>21699</b>