Getting HTML and its info

Hi all.

gonna start with that if there already is a topic about this please redirect me there but i didnt seem to find it by myself.

im in need of help with getting information from a website and take out some information into my processing sketch. prefferably for android but regular proccessing sketch also works.
i have found the lines of HTML code on the website that i want to use. but i cannot find any tips and tricks on how to get it into processing.

aand thats about it. probarly left alot of needed information out. but just ask and i shall answer to the best of my knowledge.


String[] lines = loadStrings("");
println("there are " + lines.length + " lines");
for (int i = 0 ; i < lines.length; i++) {

1 Like

Can you give an example? After you load the URL into a string you will probably need to extract your information from the HTML… and this can be difficult, time consuming, and error-prone with the wrong approaches. Parsing HTML can be hard, depending on what you need.