yatish27 / linkedin-scraper

Scrapes the public profile of the linkedin page
MIT License
553 stars 221 forks source link

education description not working #47

Closed kevinchugh closed 8 years ago

kevinchugh commented 9 years ago

This always appears as empty string.

kevinchugh commented 9 years ago

Looks like this is because there are two h5's, one for the description, one for the college logo, the presence of college logo is tripping up this selector and causing an empty description.

kevinchugh commented 9 years ago

I keep getting a permission error to commit the fix, so here's the fix:

change line 94 in lib/linkedin-scraper/profile.rb from desc = item.at('h5') to desc = item.search('h5').last

This will skip over the first h5 if present

yatish27 commented 9 years ago

You can send a PR

On Tue, Jun 9, 2015 at 12:23 PM, Kevin Chugh notifications@github.com wrote:

This always appears as empty string.

Reply to this email directly or view it on GitHub: https://github.com/yatish27/linkedin-scraper/issues/47