linkedin-scraper 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +41 -28
- data/lib/linkedin-scraper/profile.rb +1 -1
- data/lib/linkedin-scraper/version.rb +1 -1
- metadata +74 -49
data/README.rdoc
CHANGED
@@ -14,7 +14,7 @@ This gem is tested on Ruby versions 1.8.7, 1.9.2 and 1.9.3.
|
|
14
14
|
|
15
15
|
Initialize a scraper instance for an URL, like this:
|
16
16
|
|
17
|
-
profile = Linkedin::
|
17
|
+
profile = Linkedin::Profile.get_profile('http://in.linkedin.com/pub/yatish-mehta/22/460/a86')
|
18
18
|
|
19
19
|
Then you can see the scraped data like this:
|
20
20
|
|
@@ -62,38 +62,51 @@ Then you can see the scraped data like this:
|
|
62
62
|
profile.linkedin_url #url of the profile
|
63
63
|
|
64
64
|
profile.recommended_visitors
|
65
|
-
|
65
|
+
#Its the list of visitors "Viewers of this profile also viewed..."
|
66
|
+
#attr_accessor :recommended_visitors = [
|
67
|
+
# [0] {
|
68
|
+
# :link => href="http://in.linkedin.com/in/nileshavhad?trk=pub-pbmap",
|
69
|
+
# :name => "Nilesh Avhad",
|
70
|
+
# :title => "Engineering Manager",
|
71
|
+
# :company => "Better Labs"
|
72
|
+
# },
|
73
|
+
|
66
74
|
= Examples
|
67
75
|
|
68
76
|
When a link is given, it scrapes the profile and gets the data
|
69
77
|
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
78
|
+
attr_accessor :country = "India",
|
79
|
+
attr_accessor :current_companies = [
|
80
|
+
[0] {
|
81
|
+
:current_company => "Better Labs",
|
82
|
+
:current_title => "Software Engineer Core Platform"
|
83
|
+
}
|
84
|
+
],
|
85
|
+
attr_accessor :first_name = "Yatish",
|
86
|
+
attr_accessor :industry = "Information Technology and Services",
|
87
|
+
attr_accessor :last_name = "Mehta",
|
88
|
+
attr_accessor :linkedin_url = "http://in.linkedin.com/pub/yatish-mehta/22/460/a86",
|
89
|
+
attr_accessor :location = "Pune",
|
90
|
+
attr_accessor :past_companies = [
|
91
|
+
[0] {
|
92
|
+
:past_company => "Consumyze Software",
|
93
|
+
:past_title => "Trainee"
|
94
|
+
},
|
95
|
+
[1] {
|
96
|
+
:past_company => "SunGard Global Services",
|
97
|
+
:past_title => "Project Intern"
|
98
|
+
}
|
99
|
+
],
|
100
|
+
attr_accessor :recommended_visitors = [
|
101
|
+
[0] {
|
102
|
+
:link => href="http://in.linkedin.com/in/nileshavhad?trk=pub-pbmap",
|
103
|
+
:name => "Nilesh Avhad",
|
104
|
+
:title => "Engineering Manager",
|
105
|
+
:company => "Better Labs"
|
106
|
+
},
|
107
|
+
],
|
108
|
+
attr_accessor :title = "Software Engineer Core Platform at BetterLabs"
|
94
109
|
|
95
|
-
>> page.parsed_document.class
|
96
|
-
=> Nokogiri::HTML::Document
|
97
110
|
|
98
111
|
= ZOMG Fork! Thank you!
|
99
112
|
|
metadata
CHANGED
@@ -1,57 +1,74 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: linkedin-scraper
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Yatish Mehta
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
dependencies:
|
15
|
-
- !ruby/object:Gem::Dependency
|
17
|
+
|
18
|
+
date: 2012-04-12 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
16
21
|
name: httparty
|
17
|
-
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
18
24
|
none: false
|
19
|
-
requirements:
|
20
|
-
- -
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 3
|
29
|
+
segments:
|
30
|
+
- 0
|
31
|
+
version: "0"
|
23
32
|
type: :runtime
|
24
|
-
|
25
|
-
|
26
|
-
- !ruby/object:Gem::Dependency
|
33
|
+
version_requirements: *id001
|
34
|
+
- !ruby/object:Gem::Dependency
|
27
35
|
name: mechanize
|
28
|
-
|
36
|
+
prerelease: false
|
37
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
29
38
|
none: false
|
30
|
-
requirements:
|
31
|
-
- -
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
|
39
|
+
requirements:
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
hash: 3
|
43
|
+
segments:
|
44
|
+
- 0
|
45
|
+
version: "0"
|
34
46
|
type: :runtime
|
35
|
-
|
36
|
-
|
37
|
-
- !ruby/object:Gem::Dependency
|
47
|
+
version_requirements: *id002
|
48
|
+
- !ruby/object:Gem::Dependency
|
38
49
|
name: awesome_print
|
39
|
-
|
50
|
+
prerelease: false
|
51
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
40
52
|
none: false
|
41
|
-
requirements:
|
42
|
-
- -
|
43
|
-
- !ruby/object:Gem::Version
|
44
|
-
|
53
|
+
requirements:
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
hash: 3
|
57
|
+
segments:
|
58
|
+
- 0
|
59
|
+
version: "0"
|
45
60
|
type: :runtime
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
email:
|
61
|
+
version_requirements: *id003
|
62
|
+
description: "Scrapes the linkedin profile when a url is given "
|
63
|
+
email:
|
50
64
|
- yatishmehta27@gmail.com
|
51
65
|
executables: []
|
66
|
+
|
52
67
|
extensions: []
|
68
|
+
|
53
69
|
extra_rdoc_files: []
|
54
|
-
|
70
|
+
|
71
|
+
files:
|
55
72
|
- .gitignore
|
56
73
|
- Gemfile
|
57
74
|
- LICENSE
|
@@ -63,30 +80,38 @@ files:
|
|
63
80
|
- lib/linkedin-scraper/profile.rb
|
64
81
|
- lib/linkedin-scraper/version.rb
|
65
82
|
- linkedin-scraper.gemspec
|
66
|
-
has_rdoc: true
|
67
83
|
homepage: https://github.com/yatishmehta27/linkedin-scraper
|
68
84
|
licenses: []
|
85
|
+
|
69
86
|
post_install_message:
|
70
87
|
rdoc_options: []
|
71
|
-
|
88
|
+
|
89
|
+
require_paths:
|
72
90
|
- lib
|
73
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
91
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
74
92
|
none: false
|
75
|
-
requirements:
|
76
|
-
- -
|
77
|
-
- !ruby/object:Gem::Version
|
78
|
-
|
79
|
-
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
hash: 3
|
97
|
+
segments:
|
98
|
+
- 0
|
99
|
+
version: "0"
|
100
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
80
101
|
none: false
|
81
|
-
requirements:
|
82
|
-
- -
|
83
|
-
- !ruby/object:Gem::Version
|
84
|
-
|
102
|
+
requirements:
|
103
|
+
- - ">="
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
hash: 3
|
106
|
+
segments:
|
107
|
+
- 0
|
108
|
+
version: "0"
|
85
109
|
requirements: []
|
110
|
+
|
86
111
|
rubyforge_project:
|
87
|
-
rubygems_version: 1.
|
112
|
+
rubygems_version: 1.8.10
|
88
113
|
signing_key:
|
89
114
|
specification_version: 3
|
90
|
-
summary: when a url of public linkedin profile page is given it scrapes the entire
|
91
|
-
page and converts into a accessible object
|
115
|
+
summary: when a url of public linkedin profile page is given it scrapes the entire page and converts into a accessible object
|
92
116
|
test_files: []
|
117
|
+
|