Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
PerlMonks,

I'm writing a program that uses WWW::Mechanize to traverse the LinkedIn social networking site.

Background:
LinkedIn lets you connect to people which you already know - co-workers, former co-workers, college classmates, etc. (friends). I'm connected directly to 86 friends.
Each of my friends is connected to their friends. By clicking on a friend's profile, I can see who their friends are. LinkedIn tells me that I have 2400 of these 2nd-degree connections (friends-of-friends).

I'd like to put this information into a Perl data structure. Once I've done that, it's easy to process the data:
* Are there any people which many of my friends know, which I don't?
* Does anyone from my waterski club know anyone at work?

I've used WWW::Mechanize before. I can pull in a page from LinkedIn and parse the HTML. The problem is that the page of my connections does not list my friends in HTML. It looks like it's running a plugin.
Here's the page. You need to be signed in to LinkedIn to see it: http://www.linkedin.com/connections?trk=network_yourcnx
Does anyone have an idea of how to solve this problem?

Thanks,

- Chris Koknat

In reply to WWW::Mechanize to traverse LinkedIn social networking site by koknat

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-23 06:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found