Advertisement
FadlyHdytllah

[BASH] Seo-Checker

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