notes/Get URL of Scam Popup sites-RSMEQcmP.sh
#!/bin/bash

###################################################################### 
#Copyright (C) 2018  Kris Occhipinti
#https://filmsbykris.com

#This program is free software: you can redistribute it and/or modify

#it under the terms of the GNU General Public License as published by
#the Free Software Foundation, either version 3 of the License, or
#(at your option) any later version.

#This program is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of

#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the

#GNU General Public License for more details.

#You should have received a copy of the GNU General Public License
#along with this program.  If not, see <http://www.gnu.org/licenses/>.
###################################################################### 


#get URL's of scam sites


domain="https://www.scammer.info"

function main(){
  echo -n "Searching for Scams..."
  getPosts|while read l
do
  wget -qO- "$l"|\
    sed 's/{"type/\n/g'|\
    grep '_blank'|\
    sed 's/href/\nhref/g'|\
    grep href |cut -d\" -f2|\
    grep '//'|grep -v "scammer.info"

done
exit 0
}

function getPosts(){
  wget "$domain/t/fake-popup" -qO-|\
    sed 's/{"type/\n/g'|\
    grep slug |\
    cut -d\" -f7,17|\
    tr '"' '-'|\
    awk '{print "https://www.scammer.info/d/" $0}'
  }


main

syntax highlighted by Code2HTML, v. 0.9.1