Access to DOM data from jit.uldl ??

Oct 10, 2010 at 12:18pm

Access to DOM data from jit.uldl ??

Hey

Does anyone know how to view the source content of a webpage coming from jit.uldl in DOM mode /as an HTML view?

For example in a facebook page, if I want to extract the number of fans(601 people like this):

http://www.facebook.com/event.php?eid=125962647450981&ref=ts

If I look at the page source, the info I’m looking for is not there. I know the info is there because in firefox when I select this part and right-click ‘show selection source’ it shows me the data I want (DOM source of selection).

Does anyone know how I can get to that DOM view from jit.uldl?

Many thanks
Jon

#52660
Oct 10, 2010 at 10:59pm

I can’t see on that page how where it says how many people “like” it. I can see the number of people attending the event though. It might be a sign in problem. You can’t always see certain information on facebook if you’re not signed in or a member of a certain group (“like”-er of a page now, I think).

There’s no way as far as I know using [jit.uldl] to sign in so you can view what would otherwise be hidden data. If you can find a page that shows the information and is publicly visible then you might have more luck.

lh

#189318
Oct 11, 2010 at 7:33pm

there is no “like” for events, but facebook does have a nice machine-readable (JSON) api that lets you get whatever information it is you want. For the general information about the event above, use:

http://graph.facebook.com/125962647450981

You can also get lists of who’s attending, invited, etc. by getting
http://graph.facebook.com/$IDNUMBER/attending
The full list for events is at http://developers.facebook.com/docs/reference/api/event.

However, getting any non-public information (like who is attending something) requires jumping through an OAuth hoop.

#189319
Oct 11, 2010 at 9:55pm

(and jumping through that OAuth hoop is totally doable with jweb)

#189320
Oct 14, 2010 at 1:49pm

Thanks Brian very helpful!

#189321

You must be logged in to reply to this topic.