html (instamapper) to max
Hi
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 (http://www.instamapper.com/) 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);
https://cycling74.com/forums/index.php?t=msg&goto=123861&rid=0&S=75acdf6b5b748689586d340164930b58&srch=internet+data#msg_123861
and the patch;
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 .
phil
Thanks for the reply Emmanuel.
But I still have some questions;
>so this patch would work for "instamapper"?
>I have max 4.6.3 < does it work w. this version?
>how does the object [jit.str.regexp] interpret the arguments given--> [jit.str.regexp @re class=\(title|
duration|views|rating)\>(?:]+>)?([^
are the symbols; class=\ title|
is everything actually done w. this argument; \ >(?:]+>)?([^
??
Thanks again
phiol
Oh yes I also forgot to ask;
If [jit.str.regexp] is used to interpret PERL regular exp. < does it work if the webpage developers did not use PERL.? Say AJAX instead.
Or am I mixing everything up??
I do not design websites! Thus, am a little confused even I am trying to read up to understand how this works.
It's hard for me to create seperate categories hierarchically with so many new terms.
thanks a lot
phil
jit.uldl just gets the html source from the url and sends that as a matrix of text, which you can store in jit.textfile for parsing. if you doubleclick on the the jit.textfile object, you will see the html from the site.
the regexp object is there to parse some useful information from that html, but it's up to you to decide what useful thing you intend to do with the login page of a porn site.
thanks a lot for clearing things up for me robtherich.
Just to make things (unless your using the porn site as an example) THE PORN EXAMPLE PATCH IS NOT MINE! HA! What interest me is the incoming info from "instamapper"< have checked that out?
So, I will to figure out how to get html data from that site and pasre it (parsing means seperating the incoming data right)> so unpack would be a parsing object. right? < just to make double sure ;-)
Then my next guess is, the fact that I want the constantly changing incoming data from instamapper, the html data grabbing task will have to be repeating every N ms. with [metro].
And then, if i want to create a even flow effect a line object.
ex.
Info grabbing task (say site updates every 5000ms.)
|
repeat task w. metro 5020
|
output in line @ 5020ms.
This should work right ?
thansk a lot
phil
Ok,
I 've been trying w. other site(http://wwp.greenwichmeantime.com/)and I been getting no html source info whatsoever!
All [jit.uldl] does is downloads the site and places it in the max- help folder??? < why that path?
then you mentionned;
>if you doubleclick on the the jit.textfile object, you will see the html from the site.
I see nothing? < and the same goes when i try in the [jit.testfile] help file. < nothing is displayed in the opening window.
What do you guys think?
phil