[PD] Help parsing HTML with [httpget]

Martin Peach martin.peach at sympatico.ca
Sat Mar 5 18:03:20 CET 2011

It works fine for me.
I recently added [httpreq] and [httpreceive] to the mrpeach stuff in 
svn, they make it easier to do http stuff. [httpreceive] outputs the 
status on a separate outlet so you could scan for the "expires" keyword 
to know when to make another request.


On 2011-03-05 04:34, Philip Cunningham wrote:
> Hello all,
> I was working on a patch that visualises and sonifies weather data
> posted online in an HTML document. I was using [httpget] to grab the
> document and using [listsplit] and [symbol2list] to parse the
> necessary data. However, using this method, I will often get the error
> "error: unpack: type mismatch". I was wondering if someone could look
> at the patch and advise me of a cleaner way of doing this or showing
> me what I might be doing wrong? It works 70% the time. Initially, I
> was just increasing the frequency of the [httpget] to ensure that the
> data changes are captured but this method isn't very clean and would
> appreciate any corrections or feedback.
> Patch: http://uiu.me/6.pd
> This Weather: http://vimeo.com/16472933
> [httpget]: http://puredata.info/docs/tutorials/SimpleWebclient
> Best wishes,
> Philip Cunningham
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management ->  http://lists.puredata.info/listinfo/pd-list

More information about the Pd-list mailing list