// Superpages Scanning // // by 813-Error // // http://www.oldskoolphreak.com Introduction ------------ What is this? Well, it's a guide on how to make scans easier. This is mainly for residential numbers since the SuperPages.com lookup for businesses sucks. Anyway, what you do is pretty easy. Just wget a list of URLs and then grep the junk out of them. The method described here will focus on Windows utilities. If you are using *nix, it will be easier since you don't need to have a special folder for wget, but it may be more difficult with your specific wardialer. Part 1 - Getting the URLs ------------------------- When you do a residential reverse lookup, it's not hard to see how it works. Do a lookup of "813 948 000*" and it will be in the URL like so: http://directory.superpages.com/wp/results.jsp?SRC=&STYPE=WR&PS=50&A=813\ &X=948&P=00**&PI=1 http://directory.superpages.com/wp/results.jsp?SRC=&STYPE=WR&PS=50&A=813\ &X=948&P=00**&PI=2 This looks up 100 numbers (P=00**) at a time, but it can only show 60 numbers per page, so we bump it down to 50 per page (PS=50). This makes it much easier to control how things come up. Most of the time this will bring up two pages, hence the second link (PI=2). But sometimes you will get one or no pages. This is why I must stress that you do a quick preliminary scan just to make sure it will return something! The following six links will lookup 0000-0299. http://directory.superpages.com/wp/results.jsp?SRC=&STYPE=WR&PS=50&A=813\ &X=948&P=00**&PI=1 http://directory.superpages.com/wp/results.jsp?SRC=&STYPE=WR&PS=50&A=813\ &X=948&P=00**&PI=2 http://directory.superpages.com/wp/results.jsp?SRC=&STYPE=WR&PS=50&A=813\ &X=948&P=01**&PI=1 http://directory.superpages.com/wp/results.jsp?SRC=&STYPE=WR&PS=50&A=813\ &X=948&P=01**&PI=2 http://directory.superpages.com/wp/results.jsp?SRC=&STYPE=WR&PS=50&A=813\ &X=948&P=02**&PI=1 http://directory.superpages.com/wp/results.jsp?SRC=&STYPE=WR&PS=50&A=813\ &X=948&P=02**&PI=2 So you have a list of URLs to lookup. Well now all you have to do is save it as url.txt and move on to the next step. Part 2 - The wget ----------------- So now you have a list of URLs saved in url.txt to lookup. The command should be easy to figure out if you have ever used wget. If you haven't, download wget for Windows at http://www.gnu.org/software/wget/wget.html (*nix users should already have wget). Issue this command: wget -i url.txt -EPtemp I make it output to the temp directory because it's easier to remember. The "-E" option forces .html format. It might also be a good idea to throw a "-w 5" to wait between the lookups if you are performing a lot of requests. So now you should have a temp directory full of .html files with really long filenames. Since I like things to be compact and neat, I rename them all to 1.html, 2.html and so on. Part 3 - The grep ----------------- This part might take a little setup the first time. I'm using Windows Grep, so things might work different in *nix. Windows grep can be found at http://www.wingrep.com/. What you do is grep those .htmls for the NXX "948 -". You might need to experiment with what you grep for to make it only bring that line up. You should get just single lines with the numbers:
(813) 948 - 0008
(813) 948 - 0044
(813) 948 - 0059 Your list will probably be longer. Now copy this list from the bottom window and paste it into a .txt file of your choosing. When you grep the files after the first time, keep dumping them into the same file. Before we are done here you need to get rid of all that extra formating. To do this grep again for: "
(813) 948 - " and then: "" You should now have a list of residential numbers in the correct format needed for the next step. Just remember that these are the numbers NOT to call! Part 4 - PhoneTag ----------------- Now you have a .txt file with a long list like this: 0016 0019 0021 0027 So, if I was scanning 813 948 00XX, I would need to make a PhoneTag dial list of 00XX. To do this run PhoneTag. Don't worry about the modem settings. A new list can be made by going: "File > New Dial List" Now once at this menu, you will need to make a list of all valid numbers, if you were doing 813-948-00XX then you would select the following: 0 0 X X Then before creating the list make sure you unselecet "shuffled". Now it should have a list of all the possible valid numbers for the scan you are doing (pretty long, eh?). Before moving on, save the dial list just in case something goes wrong. Now you need to remove the numbers that we have marked as residential numbers. To do that go to File > Remove From List and select the .txt or .html file with the "PhoneTag format" list of numbers. If you select a file that isn't in the right format, it will either do nothing or go crazy and make a really big useless temp file. So pick the right one! I have tested this and occasionally it doesn't work. But when it does, it only takes a few seconds. So if you follow the steps for the long scans, and spend 5-10 minutes setting up a 0XXX type scan, you can save a lot of time. Conclusion ---------- If you take the time to make a big doc with URLs 000X to 999X (using copy, paste, and grep this wont take long), when you want to scan a different NPA or NXX its just a matter of greping that doc again. Happy scanning. Shouts: Superpages.com, Cr45 Du57, decoder