Internet data retrieval with MAX

Freak_Out's icon

Hello. I was wondering if it could be possible to get data from a counter, for example, or other kind of streaming data from any website, with MAX, in order to be able to use the data retrieved in realtime in a MAX patch. thx in advance.

Luke Hall's icon

You can grab the source code from a webpage using [jit.uldl] and then parse it for the bits you want using [jit.str.regexp]. See the patch below for an example.

lh

Max Patch
Copy patch and select New From Clipboard in Max.

Peter Nyboer's icon

No, that wouldn't work. IP add. changes based on your connection, not your computer. At risk of beating a dead horse, the big challenge with copy protection in Max 5-based patches is not so much creating a registration scheme , it's that the Max5 collective format is so easy to search through using a text editor, so it's that much easier to search and defeat a reg scheme.
That boringness aside, here's another example of using the internet in Max: a flickr ripper - it finds the high-res versions of photos in a flickr photostream, downloads them, and then displays them. I've probably posted this in the forum before, so forgive the repetition. http://www.lividindustry.com/culture/?p=191
There's other information on how to integrate into our video software, but you can just download the patch from that page.

Pete.