Hi
1)
processing offers a very easy way to load images from the internet:
PImage img = loadImage("url to the image");
2)
there is a more advanced way, to get the whole html-code, and extract the needed data from it.
The following code shows, how to get the html code, from any website:
ArrayList lines = new ArrayList();
String path = "http://processing.org/";
try {
URL url = new URL(path);
BufferedInputStream bufferedInput = new BufferedInputStream( url.openStream() );
int byteValue = 0;
String textline = "";
while( (byteValue = bufferedInput.read()) >= 0) {
if( byteValue != 10 ){ // 10 ... line break
textline += char(byteValue);
}
else {
lines.add(textline);
textline = "";
}
}
bufferedInput.close();
} catch (IOException e) {}
for(int i = 0; i < lines.size(); i++){
println(lines.get(i));
}
thomas