yatish27 / linkedin-scraper

Scrapes the public profile of the linkedin page
MIT License
555 stars 220 forks source link

Unable to scrape locally hosted profileExample.html file #65

Open petabreads opened 8 years ago

petabreads commented 8 years ago

Hello All,

I had a project working a couple months ago, returned to it this weekend and ran into an issue. Hopefully someone can point me in the right direction, i'm at a loss. I did a fresh install of linkedin-scraper with the latest version.

In the past, i was able to save the source code from a profile, host it locally, then run "linkedin-scraper http:localhost:9999/jeffweiner08_local.html". This worked perfectly.

Now when I do this, it comes up with empty arrays (see below). When i point it back to the actual public profile (http://www.linkedin.com/in/jeffweiner08), everything works as expected.

Any ideas what i'm doing wrong? I'm currently on mac OSX, in the past i was running RHEL 7.

Example Result when using a local file:

########:~ user$ linkedin-scraper http://localhost:9999/jeffweiner08_local.html
{
  "name": "Jeff Weiner",
  "first_name": "Jeff",
  "last_name": "Weiner",
  "title": "CEO at LinkedIn",
  "location": "San Francisco Bay Area",
  "number_of_connections": "3",
  "country": "San Francisco Bay Area",
  "industry": null,
  "summary": null,
  "picture": "https://media.licdn.com/mpr/mpr/shrinknp_400_400/p/6/005/07c/31e/153cdd3.jpg",
  "projects": [

  ],
  "linkedin_url": "http://localhost:9999/Jeff_Weiner_local.html",
  "education": [

  ],
  "groups": [

  ],
  "websites": [

  ],
  "languages": [

  ],
  "skills": [

  ],
  "certifications": [

  ],
  "organizations": [

  ],
  "past_companies": [

  ],
  "current_companies": [

  ],
  "recommended_visitors": [

  ]
}
yatish27 commented 8 years ago

Did you try the latest version ?

On Sun, Dec 13, 2015 at 9:58 PM, petabreads notifications@github.com wrote:

Example Result with a local file:

########:~ user$ linkedin-scraper http://localhost:9999/Jeff_Weiner_local.html { "name": "Jeff Weiner", "first_name": "Jeff", "last_name": "Weiner", "title": "CEO at LinkedIn", "location": "San Francisco Bay Area", "number_of_connections": "3", "country": "San Francisco Bay Area", "industry": null, "summary": null, "picture": " https://media.licdn.com/mpr/mpr/shrinknp_400_400/p/6/005/07c/31e/153cdd3.jpg ", "projects": [

], "linkedin_url": "http://localhost:9999/Jeff_Weiner_local.html", "education": [

], "groups": [

], "websites": [

], "languages": [

], "skills": [

], "certifications": [

], "organizations": [

], "past_companies": [

], "current_companies": [

], "recommended_visitors": [

] }

— Reply to this email directly or view it on GitHub https://github.com/yatish27/linkedin-scraper/issues/65#issuecomment-164329542 .

Yatish Mehta

petabreads commented 8 years ago

yes, i'm trying with 1.0.1

yatish27 commented 8 years ago

Can you check if there is diff between the source code and the local save file ?

100chocolate commented 8 years ago

I am having the same problem with version 2.1.1 using ruby 2.2 x64 on windows 10. Any suggestions on how to resolve this issue.. I have diffed the local version and the online public profile and there is no apparent difference.