Marc Zaharescu
Marc Zaharescu

Reputation: 639

LinkedIn Ajax Request to view a profile

I am trying to use an ajax 'GET' request to view a profile on LinkedIN without refreshing the page.

I am doing something like this:

$.get( "the_url", function( data ) {
   $( ".result" ).html( data );
   alert( "Load was performed." );
});

Even though it shows the alert message, it doesn't appear to have actually viewed the profile. Any ideas how I can achieve this?

Upvotes: 0

Views: 1204

Answers (1)

cor
cor

Reputation: 3393

You can't send the request client side due to Cross origin issues (CORS). If you want to extract data from an html, you need to use web scraping technics. Linkedin also offers a public API where probably you can find the information you are looking for and you can access it client side.

https://developer.linkedin.com/docs/rest-api

Upvotes: 2

Related Questions