1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Getting rid of "|pagerank" etc in ScrabeBox lists

Discussion in 'Black Hat SEO' started by sfidirectory, Feb 12, 2012.

  1. sfidirectory

    sfidirectory Senior Member

    Joined:
    Mar 29, 2010
    Messages:
    899
    Likes Received:
    483
    Occupation:
    Web developer/BTC enthusiast
    Location:
    php artisan make:migration
    Home Page:
    Hi everyone,

    Was digging through my HD and found some Java code I made that removes the "|pagerank" from the end of each link in a txt file. All you need to do is ensure that the .java file is in the same directory as the .txt file. You can run this from the CLI but you can just download Dr Java if you want a simple GUI to compile and run the Java file. I havn't used this code in a while and I can't find any SB lists to test the script on. Feel free to make alterations and share them with me, I start back at University tomorrow after my summer break (in southern hemisphere) so am just quickly reacquainting myself with coding in general.

    Anyway here is the code:

    Code:
    import java.io.*;
    class FileRead {
     public static void main(String args[]){
      try{
      // Open the file that is the first 
      // command line parameter
      FileInputStream fstream = new FileInputStream("autoapprove.txt");
      // Get the object of DataInputStream
      DataInputStream in = new DataInputStream(fstream);
      BufferedReader br = new BufferedReader(new InputStreamReader(in));
      String strLine;
      //Read File Line By Line
      while ((strLine = br.readLine()) != null)   {
      // Print the content on the console
        if(strLine.substring(-4, strLine.length()) == "|N/A" || strLine.substring(-2, strLine.length()) == "|5" || strLine.substring(-2, strLine.length()) == "|4"
              || strLine.substring(-2, strLine.length()) == "|3" || strLine.substring(-2, strLine.length()) == "|2" || strLine.substring(-2, strLine.length()) == "|1"
              || strLine.substring(-2, strLine.length()) == "|0")
      System.out.println (strLine);
      }
      //Close the input stream
      in.close();
        }catch (Exception e){//Catch exception if any
      System.err.println("Error: " + e.getMessage());
      }
      }
    }
    Just download Dr Java, install it and then copy and paste this script into the compiler. Again, make sure that the script is in the same directory as your SB list (.txt file). In the following line...

    Code:
    FileInputStream fstream = new FileInputStream("autoapprove.txt");
    ... you will need to change "autoapprove.txt" to the name of your SB list file (obviously) otherwise you will get errors.

    Hope this helps anyone out :).
     
  2. supaH

    supaH Junior Member

    Joined:
    Nov 22, 2011
    Messages:
    123
    Likes Received:
    20
    Or you could just load the list into harvester than export it to a new file and |PR would be gone. Or open the .txt file and CTRL+H, find and replace "|PR#" with "blank" then go through each PR.
     
  3. pompano

    pompano Power Member

    Joined:
    Apr 25, 2011
    Messages:
    553
    Likes Received:
    221
    Occupation:
    SEO
    Location:
    Canada
    Yeah sounds a lot more easier just importing and exporting. Takes like 1 minute :D
     
  4. TheMatrix

    TheMatrix BANNED BANNED

    Joined:
    Dec 20, 2008
    Messages:
    3,444
    Likes Received:
    7,279
    From SB:

    Import/Export URLs & PR > Import From Text > Export URL List
     
  5. shortguy014

    shortguy014 Junior Member

    Joined:
    Jan 19, 2010
    Messages:
    174
    Likes Received:
    112
    Import into excel -> Sort data by delimited | -> Delete Column -> Re export.