html (instamapper) to max

Aug 18, 2008 at 5:18am

html (instamapper) to max


I am quite new to jitter and would need some help to figure out how to get internet html data into max.

My friend has an iphone 3g and uses ( to get GPS readings in real time. Now he asked if it was possible to get the data into max.

I have read a post mentioning that [jit.uldl] is the way to go to dowload data from the net. (B.t.w, I’ve updated this object to the latest april 1st 2008 version)

The answer for what i need to do would seem to be here in this post below. But after trying the given patch, nothing really seems to be working right?? I get a few errors like-
“jit.str.regexp: could not compile: unmatched parentheses”

(here is the post);

and the patch;

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 84 291 32 196617 print;
#P button 50 81 15 0;
#P newex 84 190 81 196617 jit.str.tosymbol;
#P newex 84 107 128 196617 jit.textfile @title webpage;
#P message 84 44 303 196617 download matrix;
#P newex 84 68 40 196617 jit.uldl;
#P window linecount 2;
#P newex 84 145 424 196617 jit.str.regexp @re class=\\(title|
duration|views|rating)\\>(?:]+>)?([^< ]+);
#P window linecount 1;
#P newex 84 233 51 196617 tosymbol;
#P newex 84 260 55 196617 zl group 2;
#P connect 7 0 5 0;
#P connect 3 0 5 0;
#P connect 4 0 3 0;
#P connect 1 0 0 0;
#P connect 6 0 1 0;
#P connect 5 0 2 0;
#P connect 2 2 6 0;
#P connect 0 0 8 0;
#P window clipboard copycount 9;

Maybe there are other ways without using[jit.uldl] or [jit.regexp], but this is the closest I got to finding my answer. I guess ?? ;)

Thanks in advance for any help on this .

Report message to a moderator

Aug 19, 2008 at 2:49pm

Questionable source material.

You are escaping the first parenthesis in your jit.regexp. Changing that should remove your error.

Aug 20, 2008 at 11:31pm

bonjour faire signe au machiniste

J’aime ton titre ;-)

Have you read the entire post ?? even the title.
the porn part is not mine !!!! I couldn’t give a shit !!

What interest me is getting the html source of instamapper or (any site for that matter) into max and parse changeable data.

#1 problem. I don,t know jitter much.< but i've been reading.
#2 I don,t know html. < to track what I want to parse. < but i've been reading ( learned a few

#3 i can’t get the help files to work. So, I could at least try to figure out what,s going on.

I am really desperate to get this fabulous object running.

Finally, basically I just want to get basic max data so I can ‘t music! I am not really concerned about jitter matrices at the moment.

Merci beaucoup pour ton temps


Aug 20, 2008 at 11:38pm


I meant
Finally, basically I just want to get basic max data so I can do some music! I am not really concerned about jitter matrices at the moment.



Aug 21, 2008 at 1:15am

hi fairesigne

here is the patch again. The time with the greenwich meantime.

I am now able to get to code(< I added the matrix argument)

would you be kind enough to help me get the changing time value.

thanks a million


#P window setfont “Sans Serif” 9.;
#P window linecount 2;
#P comment 477 176 193 196617 < - needed to put argument matrix for it to work;
#P window linecount 1;
#P newex 262 256 32 196617 print;
#P newex 218 425 32 196617 print;
#P newex 218 324 81 196617 jit.str.tosymbol;
#P newex 215 236 58 196617 jit.textfile;
#P message 215 176 256 196617 download matrix;
#P newex 214 197 40 196617 jit.uldl;
#P newex 215 278 72 196617 jit.str.regexp;
#P newex 218 367 51 196617 tosymbol;
#P newex 218 394 55 196617 zl group 2;
#P window linecount 2;
#P comment 294 277 292 196617 < - could you help me with this part to get the changing time that is displayed in website;
#P connect 3 2 7 0;
#P connect 6 0 3 0;
#P connect 5 0 4 0;
#P connect 7 0 2 0;
#P connect 2 0 1 0;
#P connect 1 0 8 0;
#P connect 4 0 6 0;
#P connect 6 2 9 0;
#P window clipboard copycount 11;

Aug 22, 2008 at 5:11pm

Aug 22, 2008 at 11:46pm

thanks for the tip emmanuel

But the point of using this example was just to demonstrate how to parse a variable from a website.

What I’m hoping for is,maybe someone showing a sample patch of fetching a desired data.

By the way, are there any other way than w. the Perl jit.str.regexp.

I”m sure this is extremely simple for many of you.

For me, it’s been a nightmare.

I’ve been working really hard to figure this one out.

The best way of understanding concept/patches etc.. for me up to now, has been to take relatively complex patches apart. Then I come up w. my own stuff.

But basically, getting my hands dirty!

That’s what i’ve been trying w. the PARSER/downloader section in the [jit.str.regexp] help file.

Again, any help on how to get a variable from a website into Max
would be greatly appreciated.

Thanks a million in advance

Anxiously waiting :-)


Aug 23, 2008 at 5:28pm

Aug 25, 2008 at 3:11am

Aug 25, 2008 at 4:32am

Hi emmanuel

Just a quick question I forgot to include in my last reply.

you said;

>The problem with both website is that the pages are dynamic on the
client side.

-Why is this a problem? Is it because the jit.uldl searches for code that are dynamic on the server side? I have read that Perl is used for server-side scripting. And is that why we use [jit.str.regexp]??

you said;
>It seems though that instantmapper have an API which
gives you access to the a static page:

-which is said by the authors that “You are allowed to issue at most one request every 10 seconds (30 seconds for HTTPS).”

So basically, I will dynamic data in MAX, I will have to download the page, say, every 11 sec.

THanks again


Aug 25, 2008 at 4:36am

I will be out of the office from August 7 until August 25 and will not
have access to my email account. If you need assisitance while I am away
please contact Ana Varas at 754-321-2050 or

Thank you


You must be logged in to reply to this topic.