# Getting HTML and its info

**URL:** <https://discourse.processing.org/t/getting-html-and-its-info/10546>\
**Category:** Coding Questions\
**Created:** [April 22, 2019, 4:03pm UTC](https://discourse.processing.org/t/getting-html-and-its-info/10546 "2019-04-22T16:03:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![niljon](https://avatars.discourse-cdn.com/v4/letter/n/91b2a8/32.png) [@niljon](https://discourse.processing.org/u/niljon)\
**Post date:** [April 22, 2019, 4:03pm UTC](https://discourse.processing.org/t/getting-html-and-its-info/10546/1 "2019-04-22T16:03:29Z")

</div>

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.

thanks

---

<div class="post-metadata">

**Author:** ![TfGuy44](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tfguy44/32/41_2.png) [@TfGuy44](https://discourse.processing.org/u/TfGuy44)\
**Post date:** [April 22, 2019, 6:56pm UTC](https://discourse.processing.org/t/getting-html-and-its-info/10546/2 "2019-04-22T18:56:42Z")

</div>

```auto
String[] lines = loadStrings("http://processing.org/about/index.html");
println("there are " + lines.length + " lines");
for (int i = 0 ; i < lines.length; i++) {
  println(lines[i]);
}

```

[https://processing.org/reference/loadStrings\_.html](https://processing.org/reference/loadStrings_.html)

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [April 23, 2019, 2:07pm UTC](https://discourse.processing.org/t/getting-html-and-its-info/10546/3 "2019-04-23T14:07:54Z")

</div>

> [@niljon](#):
>
> getting information from a website and take out some information into my processing sketch

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.
