name
HtmlImageFinder
import prohtml.*;

HtmlImageFinder htmlImageFinder;

void setup(){
  
  //insert your url here
  htmlImageFinder = new HtmlImageFinder("http://www.yoururl.com");

  PImage[] images = new PImage[htmlImageFinder.getNumbOfImages()];
  
  int maxHeight=0;
  int mywidth = 0;

  for(int i = 0;i< images.length;i++){
    images[i] = loadImage(htmlImageFinder.getImageLink(i));   
    maxHeight = max(images[i].height,maxHeight);
    mywidth+=10;
  }
  
  size(mywidth,maxHeight);
  
  for(int i = 0;i< images.length;i++){
    image(images[i],i*10,0);
  }
}
description
Use this class to directly find all images of a htmldocument. HtmlImageFinder scans a page for images and builds the complete urls to this image.
constructors
HtmlImageFinder(url);
HtmlImageFinder(page, url);
parameters
url
String, url to the document youwant to scan for images
page
StringReader, holding the document youwant to scan
methods
Use this Method to get a certain image HtmlImageFinder has found in the given HTML document.
Use this Method to get the number of all images HtmlImageFinder has found in a HTML document.
usage
Web & Application
related