linkedin-scraper 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -48,6 +48,7 @@ module Linkedin
48
48
  @past_companies=get_past_companies page
49
49
  @recommended_visitors=get_recommended_visitors page
50
50
  @linkedin_url=url
51
+ @page=page
51
52
  end
52
53
  #returns:nil if it gives a 404 request
53
54
  def self.get_profile url
@@ -55,8 +56,8 @@ module Linkedin
55
56
  @agent=Mechanize.new
56
57
  @agent.user_agent_alias = USER_AGENTS.sample
57
58
  @agent.max_history = 0
58
- @page=@agent.get url
59
- return Linkedin::Profile.new(@page, url)
59
+ page=@agent.get url
60
+ return Linkedin::Profile.new(page, url)
60
61
  rescue=>e
61
62
  puts e
62
63
  end
@@ -1,5 +1,5 @@
1
1
  module Linkedin
2
2
  module Scraper
3
- VERSION = "0.0.5"
3
+ VERSION = "0.0.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: linkedin-scraper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: