linkedinparser 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jobs.rb +9 -2
- data/lib/linkedinparser.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51d5a49409ecc619839600b03733e9b4e358e405
|
4
|
+
data.tar.gz: c5fd73ef7b882a4e4e1e63e7bdf9698a823f4ed4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63ce7fa876c218af21c334401f973179256169a014dc4653b50fc15aea06a82cc92aa637349d9b20d336fd8b0af8f54545a6cc9c02fa303bc2f54da7465c7776
|
7
|
+
data.tar.gz: d6ee9949fda0facbf5978ff2021a576efe1fbf8df2e40f88457e7bc73f4d1c7d930560c6fe3a5a6ed08da5d19c7dc64184800080eb69b1dd5bbad59f7e1680a0
|
data/lib/jobs.rb
CHANGED
@@ -22,6 +22,7 @@ class Jobs
|
|
22
22
|
# Get lists of positions
|
23
23
|
@positions_list = Array.new
|
24
24
|
positions.each do |position|
|
25
|
+
begin
|
25
26
|
@positions_list.push({
|
26
27
|
title: title(position),
|
27
28
|
company: company(position),
|
@@ -30,6 +31,8 @@ class Jobs
|
|
30
31
|
end_date: end_date(position),
|
31
32
|
work_location: work_location(position),
|
32
33
|
current: current(position)})
|
34
|
+
rescue
|
35
|
+
end
|
33
36
|
end
|
34
37
|
end
|
35
38
|
|
@@ -81,8 +84,12 @@ class Jobs
|
|
81
84
|
|
82
85
|
# Parse date
|
83
86
|
def date_parse(date)
|
84
|
-
|
85
|
-
|
87
|
+
begin
|
88
|
+
date = date+"-01-01" if date =~ /^(19|20)\d{2}$/
|
89
|
+
Date.parse(date)
|
90
|
+
rescue
|
91
|
+
binding.pry
|
92
|
+
end
|
86
93
|
end
|
87
94
|
|
88
95
|
# Get location for work
|
data/lib/linkedinparser.rb
CHANGED
@@ -57,7 +57,8 @@ end
|
|
57
57
|
#driver = Selenium::WebDriver.for :firefox, profile: profile
|
58
58
|
#url = "https://www.linkedin.com/pub/christopher-mcclellan/5b/a09/ba9"
|
59
59
|
#url = "https://www.linkedin.com/pub/maryann-holmes/2b/770/3b2"
|
60
|
-
#driver.navigate.to url
|
61
60
|
|
61
|
+
#url = "https://www.linkedin.com/pub/kenneth-chamberlin/32/8bb/b22"
|
62
|
+
#driver.navigate.to url
|
62
63
|
#l = LinkedinParser.new(driver.page_source, url, {timestamp: Time.now})
|
63
64
|
#puts l.results_by_job
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: linkedinparser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- M. C. McGrath
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Parses public LinkedIn profiles
|
14
14
|
email: shidash@shidash.com
|