Forums > Javascript

Access to DOM data from jit.uldl ??

October 10, 2010 | 12:18 pm

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


October 10, 2010 | 10:59 pm

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


October 11, 2010 | 7:33 pm

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.


October 11, 2010 | 9:55 pm

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


October 14, 2010 | 1:49 pm

Thanks Brian very helpful!


Viewing 5 posts - 1 through 5 (of 5 total)