yatish27 / linkedin-scraper

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

Having trouble calling skills #5

Closed bradbarbin closed 11 years ago

bradbarbin commented 11 years ago

Great gem. Thank you.

I'm having difficult calling :skills and I was wondering if I was doing something wrong. From the console, the skills return as Mechanize page links, but when I return a JSON object the skills are nowhere to be found.

Screen Shot 2013-03-12 at 10 39 49 AM

Here's the rabl view:

object @profile => :profile attributes :first_name, :last_name, :title, :location, :country, :industry, :current_companies, :past_companies, :websites, :groups, :skills, :education

And here's the app that return JSON:

require 'sinatra' require 'rabl' require 'linkedin-scraper' require 'active_support/core_ext' require 'active_support/inflector' require 'builder'

Rabl.register!

get '/' do "Hello Index" end

get '/profile' do @profile = Linkedin::Profile.get_profile(params[:url]) render :rabl, :profile, format: 'json' end

leonelgalan commented 11 years ago

+1

yatish27 commented 11 years ago

So sorry i updated github but not released the gem Check new released gem

yatish27 commented 11 years ago

0.0.8

yatish27 commented 11 years ago

Working on ruby 2.0.0

On Tue, Mar 12, 2013 at 9:00 PM, Leonel Galan notifications@github.comwrote:

+1

— Reply to this email directly or view it on GitHubhttps://github.com/yatishmehta27/linkedin-scraper/issues/5#issuecomment-14781976 .

Yats

bradbarbin commented 11 years ago

Hey man, don't be sorry. You're the best. You've saved us all so much time.

What I ended up doing was just using your code from github and it worked like a charm.

Thanks again!!!

yatish27 commented 11 years ago

cool . Test and tell me if you find any issues also do send a feature request if you come up with something