linkedin-scraper 1.0.0 → 1.0.1
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.
- checksums.yaml +4 -4
- data/lib/linkedin_scraper/profile.rb +1 -1
- data/lib/linkedin_scraper/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d28363f36c1e925adb5485267bc41e5211263ea6
|
|
4
|
+
data.tar.gz: 76dda95b13668d5343df63020a623f3095053071
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5cc753e1021f4a5727f6a18baaf2933940b5fe6b2f2fe1850f9bcee60613783493ab8b59e8926bd938824f974865ca7c6b0ef17346951a4faa1db2dd5f69a77c
|
|
7
|
+
data.tar.gz: f29dd0bc86d759665d8010f9e58bcefbecc94279fa10795d9317dbfacb3991fc63ebfe2e11f1c26cc5b4eb68e9cfe0e6a7734b85a7544dfe0880a6456add1c40
|
|
@@ -200,7 +200,7 @@ module Linkedin
|
|
|
200
200
|
start_date, end_date = node.at(".meta").text.strip.split(" – ") rescue nil
|
|
201
201
|
company[:duration] = node.at(".meta").text[/.*\((.*)\)/, 1]
|
|
202
202
|
company[:start_date] = parse_date(start_date) rescue nil
|
|
203
|
-
if end_date.match(/Present/)
|
|
203
|
+
if end_date && end_date.match(/Present/)
|
|
204
204
|
company[:end_date] = "Present"
|
|
205
205
|
else
|
|
206
206
|
company[:start_date] = parse_date(end_date) rescue nil
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: linkedin-scraper
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Yatish Mehta
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-12-
|
|
11
|
+
date: 2015-12-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: mechanize
|
|
@@ -95,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
95
95
|
version: '0'
|
|
96
96
|
requirements: []
|
|
97
97
|
rubyforge_project:
|
|
98
|
-
rubygems_version: 2.4.
|
|
98
|
+
rubygems_version: 2.4.5.1
|
|
99
99
|
signing_key:
|
|
100
100
|
specification_version: 4
|
|
101
101
|
summary: when a url of public linkedin profile page is given it scrapes the entire
|