# Web loadStrings

**URL:** <https://discourse.processing.org/t/web-loadstrings/17923>\
**Category:** Coding Questions\
**Created:** [February 19, 2020, 12:40am UTC](https://discourse.processing.org/t/web-loadstrings/17923 "2020-02-19T00:40:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![juanjoc](https://avatars.discourse-cdn.com/v4/letter/j/e480ec/32.png) [@juanjoc](https://discourse.processing.org/u/juanjoc)\
**Post date:** [February 19, 2020, 12:40am UTC](https://discourse.processing.org/t/web-loadstrings/17923/1 "2020-02-19T00:40:18Z")

</div>

Hi guys

Im working with data extraction of the web. I tried to use examples like the following

```auto
String[] rawhtml;
String [] shows;
String html;
int j = 0;
 
void setup(){
  rawhtml = loadStrings("<a href="http://www.bochcenter.org/buy/show-listing" target="_blank" rel="nofollow">http://www.bochcenter.org/buy/show-listing</a>");
  shows = new String[75];
}
 
void draw(){
  for(int i = 0; i < rawhtml.length; i++){
    if(rawhtml[i].indexOf("<div class=\"show-title\">") >= 0){
      shows[j] = rawhtml[i+3];
      j++;
    }
  }
  printArray(shows);
}

```

But when I compile, I realized that the loadStrings() argument will not work, because of “//” inside, so I don’t know how processing will understand the xml parameters mixed with string letters, or Im wrong in something

Thanks

---

<div class="post-metadata">

**Author:** ![anon94203042](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@anon94203042](https://discourse.processing.org/u/anon94203042)\
**Post date:** [February 19, 2020, 1:01am UTC](https://discourse.processing.org/t/web-loadstrings/17923/2 "2020-02-19T01:01:31Z")

</div>

I don’t think the `http://` is nessasary. Just write the link without it.

Also, I don’t think that even the `www.` is necessary.

Hopefully this helps!

---

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [February 19, 2020, 11:59am UTC](https://discourse.processing.org/t/web-loadstrings/17923/3 "2020-02-19T11:59:46Z")

</div>

Hello,

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

This worked:

```auto
String[] lines = loadStrings("http://www.bochcenter.org/buy/show-listing");

println("there are " + lines.length + " lines");

for (int i = 0; i < lines.length; i++) 
  {
  println(lines[i]);
  }

```

`:)`
