<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <font face="Courier New" size="-1">I forgot to reply to the list as
      well:<br>
    </font>
    <pre><font face="Courier New" size="-1">On 2011-09-20 15:25, Alvin Google wrote:
&gt; On 2011-09-20 14:58, Martin Peach wrote:
&gt;&gt; On 2011-09-20 01:22, Alvin Google wrote:
&gt;&gt;&gt; I have been interested in using streaming information in a pd patch. I
&gt;&gt;&gt; have taken a look at the simplewebclient and httpget patches listed 
&gt;&gt;&gt; here
&gt;&gt;&gt; in the thread, but I can not figure out how to target specific 
&gt;&gt;&gt; tables or
&gt;&gt;&gt; div class information from a web page.
&gt;&gt;&gt;
&gt;&gt;&gt; I assume that you have to download the entire page.
&gt;&gt;&gt; Can you parse for specific information : name of content and it's 
&gt;&gt;&gt; value?
&gt;&gt;&gt;
&gt;&gt;
&gt;&gt; Yes you get the whole content-length.
&gt;&gt; You can either operate on a list or a table. I prefer to load 
&gt;&gt; everything into a large table and parse that.
&gt;&gt; I think pdlua would be ideal for parsing text, but so far I made my 
&gt;&gt; own abstractions from Pd objects to extract numbers from particular 
&gt;&gt; locations in lists. The problem with converting things to symbols is 
&gt;&gt; that the symbol table can get filled with mostly junk symbols.
&gt;&gt; You can go line by line by scanning for 10, the ASCII line feed 
&gt;&gt; character.
&gt;&gt;
&gt;&gt; Martin
&gt;&gt;
&gt; Thanks for your reply Martin.
&gt; I am not sure how to go about this yet, but it sounds like one has to 
&gt; look through data line by line.
&gt; Can you look for specific strings on a webpage like the contents of a 
&gt; specific table tag?

[mrpeach/tabfind] can be used to find a string in a table.



&gt; Maybe there is another way to approach this?
&gt;

There are probably many ways to do it. They are all a bit tedious with 
Pd though.
I attach a copy of a patch I use. Maybe it will help.


Martin


</font></pre>
  </body>
</html>