#!/bin/bash
# https://zerobyte.id/
s_log='seo_checked.txt';
cat << "EOF"
____ ____ _ _
/ ___| ___ ___ / ___| |__ | | ___ __
\___ \ / _ \/ _ \| | | '_ \| |/ / '__|
___) | __/ (_) | |___| | | | <| |
|____/ \___|\___/ \____|_| |_|_|\_\_|
---------[ ZeroByte.ID ~ v1.0 ]---------
EOF
function alexachk() {
url=$1
ALXT=$(curl -s "https://www.alexa.com/siteinfo/${url}" | grep -C 2 'Global rank icon' | grep -e ^[0-9] | awk '{print $1}');
if [[ -z $ALXT ]];then
ALX='-';
else
ALX=$ALXT;
fi
echo '- Global Alexa Rank: '$ALX;
echo 'Global Alexa Rank: '$ALX >> $s_log;
}
function dailypv() {
URL=$1;
curl -s -F "go=Submit" -F "url=${URL}" -X POST "http://www.siteworthtraffic.com/" -o /dev/null
PVD=$(curl -s "http://www.siteworthtraffic.com/report/${URL}" | grep '<td>Unique Pageviews</td>' | head -1 | sed 's|<td>||g' | sed 's|</td>||g' | awk '{print $4}');
echo "- Daily Pageviews: ${PVD}";
echo 'Daily Pageviews: '$PVD >> $s_log;
}
function dapachk() {
URL=$1;
DAPA=$(curl -s -F "url_form=${URL}" -X POST http://www.scrolltotop.com/MozRank-Domain-Authority-Checker.php | grep ">${URL}<" | sed 's|<| |g' | sed 's|>| |g' | sed 's|td||g');
DA=$(echo $DAPA | awk '{print $6}');
PA=$(echo $DAPA | awk '{print $8}');
echo '- Domain Authority: '$DA;
echo 'Domain Authority: '$DA >> $s_log
echo '- Page Authority: '$PA;
echo 'Page Authority: '$PA >> $s_log
}
echo -ne 'Weblist: ';read urls;
echo '';
for urlz in $(cat $urls);
do
url=$(echo $urlz | sed 's|http://||g' | sed 's|https://||g' | sed 's|/| |g' | awk '{print $1}' | sed 's|www.||g');
echo '# URL: '$url;
echo $url >> $s_log;
alexachk $url;
dailypv $url;
dapachk $url;
echo '# EOF';
echo '' >> $s_log;
echo '';
sleep 1s
done
Comments