Wednesday, May 28, 2014

IMG Grabber for syllipsi.jar

Grabs the lines containing the HTML image attribute, built to go inside of Syllipsi.jar that I debuted in the previous post.

String Minor="<img";
String imgsieve[]= loadStrings("http://www.google.com");
String stringcheese;
String yeah="img.txt";
println(imgsieve.length);
for (int i = 0 ; i < imgsieve.length; i++) {
      stringcheese= imgsieve[i];
  if (stringcheese.indexOf(Minor) !=-1){

  println(imgsieve[i]);
 saveStrings(yeah,imgsieve);

  }
}
String stringcheese is used as a string variable to overcome some args

Cuts down the google home page to 4 lines but this doesn't cut out the excess from long lines of html strings, for example strings can be read much longer than the img section of the HTML, but this fix is included in Syllipsi.jar and will be explained later.

No comments:

Post a Comment