# Reading HTML from a twitch page

**URL:** <https://discourse.processing.org/t/reading-html-from-a-twitch-page/4444>\
**Category:** Coding Questions\
**Created:** [October 13, 2018, 11:38pm UTC](https://discourse.processing.org/t/reading-html-from-a-twitch-page/4444 "2018-10-13T23:38:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![metype](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/metype/32/7040_2.png) [@metype](https://discourse.processing.org/u/metype)\
**Post date:** [October 13, 2018, 11:38pm UTC](https://discourse.processing.org/t/reading-html-from-a-twitch-page/4444/1 "2018-10-13T23:38:52Z")

</div>

Ok so I am trying to grab the HTML from a twitch page and am having issues as I am getting something completely different from what I;d normally see in the console.

```auto
String[] html;

void setup() {
  size(400,400);
  html = loadStrings("https://www.twitch.tv");
  printArray(html);
}

void draw() {
  
}

```

It is outputting a script object ONLY in the console and not what you would normally see when opening the console in Chrome on the same site, what I want to know is what is how to get the HTML you would normally see in the browser Console not the script object that I get from this method.

---

<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:** [October 14, 2018, 12:22am UTC](https://discourse.processing.org/t/reading-html-from-a-twitch-page/4444/2 "2018-10-14T00:22:33Z")

</div>

I don’t know what you think you’re getting as output, but the Processing console intentionally has a size limitation on how much text it can display at once. What you are seeing is the tail end of the page you asked for, which is part of a script.

You are actually getting the HTML though. Look:

```auto
String[] html;

void setup() {
  size(400,400);
  html = loadStrings("https://www.twitch.tv");
  println(html[0].substring(0,300));
  
}

void draw() {
  
}

```
