yatish27 / linkedin-scraper

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

Uninitialized Constant LinkedIn #17

Closed rdempsey closed 11 years ago

rdempsey commented 11 years ago

When running the following in irb:

require 'linkedin-scraper' profile = LinkedIn::Profile.get_profile("http://www.linkedin.com/in/robertwdempsey")

I get the following error:

NameError: uninitialized constant LinkedIn from (irb):2 from /Users/roger/.rvm/rubies/ruby-1.9.3-p327/bin/irb:18:in `

'

I'm running ruby version 1.9.3p327 and have all the other required gems installed.

Any ideas?

Thanks!

  • Robert
yatish27 commented 11 years ago

I am assuming the I should be small

On Tue, Jun 18, 2013 at 7:13 AM, Robert Dempsey notifications@github.comwrote:

When running the following in irb:

require 'linkedin-scraper' profile = LinkedIn::Profile.get_profile(" http://www.linkedin.com/in/robertwdempsey")

I get the following error:

NameError: uninitialized constant LinkedIn from (irb):2 from /Users/roger/.rvm/rubies/ruby-1.9.3-p327/bin/irb:18:in `'

I'm running ruby version 1.9.3p327 and have all the other required gems installed.

Any ideas?

Thanks!

  • Robert

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

Yats

rdempsey commented 11 years ago

And that would totally make sense. Next time I'll use my powers of copy/paste.

Thanks!

dvc009 commented 9 years ago

I'm getting the same error even with: profile = Linkedin::Profile.get_profile("http://www.linkedin.com/in/jeffweiner08")

I'm using ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin13]

NetanelBasal commented 8 years ago

Any soultion to this problem?

yatish27 commented 8 years ago

require 'linkedin_scraper' profile = Linkedin::Profile.get_profile("http://www.linkedin.com/in/robertwdempsey")

bricemaurin commented 8 years ago

the "-" has been changed to "_"

cf. @yatish27 answer