zerobyte-id

SEO Mass Checker

Jan 31st, 2018
717
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. # https://zerobyte.id/
  3.  
  4. s_log='seo_checked.txt';
  5.  
  6. cat << "EOF"
  7.  ____              ____ _     _        
  8. / ___|  ___  ___  / ___| |__ | | ___ __
  9. \___ \ / _ \/ _ \| |   | '_ \| |/ / '__|
  10.  ___) |  __/ (_) | |___| | | |   <| |  
  11. |____/ \___|\___/ \____|_| |_|_|\_\_|  
  12.  
  13. ---------[ ZeroByte.ID ~ v1.0 ]---------
  14.  
  15. EOF
  16. function alexachk() {
  17.     url=$1
  18.     ALXT=$(curl -s "https://www.alexa.com/siteinfo/${url}" | grep -C 2 'Global rank icon' | grep -e ^[0-9] | awk '{print $1}');
  19.     if [[ -z $ALXT ]];then
  20.         ALX='-';
  21.     else
  22.         ALX=$ALXT;
  23.     fi
  24.     echo '- Global Alexa Rank: '$ALX;
  25.     echo 'Global Alexa Rank: '$ALX >> $s_log;
  26. }
  27. function dailypv() {
  28.     URL=$1;
  29.     curl -s -F "go=Submit" -F "url=${URL}" -X POST "http://www.siteworthtraffic.com/" -o /dev/null
  30.     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}');
  31.     echo "- Daily Pageviews: ${PVD}";
  32.     echo 'Daily Pageviews: '$PVD >> $s_log;
  33. }
  34.  
  35. function dapachk() {
  36.     URL=$1;
  37.     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');
  38.     DA=$(echo $DAPA | awk '{print $6}');
  39.     PA=$(echo $DAPA | awk '{print $8}');
  40.     echo '- Domain Authority: '$DA;
  41.     echo 'Domain Authority: '$DA >> $s_log
  42.     echo '- Page Authority: '$PA;
  43.     echo 'Page Authority: '$PA >> $s_log
  44. }
  45.  
  46. echo -ne 'Weblist: ';read urls;
  47. echo '';
  48.  
  49. for urlz in $(cat $urls);
  50. do
  51.     url=$(echo $urlz | sed 's|http://||g' | sed 's|https://||g' | sed 's|/| |g' | awk '{print $1}' | sed 's|www.||g');
  52.     echo '# URL: '$url;
  53.     echo $url >> $s_log;
  54.     alexachk $url;
  55.     dailypv $url;
  56.     dapachk $url;
  57.     echo '# EOF';
  58.     echo '' >> $s_log;
  59.     echo '';
  60.     sleep 1s
  61. done
RAW Paste Data