linkedincrawler 0.0.3 → 0.0.4

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/linkedincrawler.rb +5 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9b7f2d7ba8db0f4044fc5b3bbe3c606f4dffd8fd
4
- data.tar.gz: 8c3b355ad6d82cdfb3dab6fbdb9ef5ef48f56c7e
3
+ metadata.gz: 3be949ebe25839f19c8c03dc0be404dc8e15928f
4
+ data.tar.gz: b070cd1c81b4e91d31f38d13856279c27c9455ff
5
5
  SHA512:
6
- metadata.gz: d70d3954b74d82cab7a4424789c159b1fe73b9f5a92dd96ca785e00a3e8af04e3a94b37dfcafec9aa10cf12ea3b68fdbff0ff7c56c119f2d5acbca8bcdb2c61e
7
- data.tar.gz: 836085e285fa52454dc90bfd726a923b4a4b451f70b7a81e6a0e85792429505870291676073b25083422b4143db1ff982fa686d11bdd642c402528ecc5f2897d
6
+ metadata.gz: fae6bb4559925406d27e631e08c901d5d86a7089b5d94f7e31ebe16f6849d284da8a4070af5d3931de73ea17a1cb3779eb728a8b9036989dfb5cdc6873588727
7
+ data.tar.gz: f100d18fd9951c0baa93e5dbbe6be08a4977cfb4aade1cb2e872d6bfecb6bc5f7f082ce85b4a5e671a1507287f9cd6cf7d1ab84121d36cd9c02be54984197646
@@ -36,8 +36,11 @@ class LinkedinCrawler
36
36
  profile_html = getPage(profile_url, @driver, nil, 5, false).page_source
37
37
 
38
38
  # Parse profile and add to output
39
- l = LinkedinParser.new(profile_html, profile_url, {timestamp: Time.now})
40
- @output += JSON.parse(l.results_by_job)
39
+ begin
40
+ l = LinkedinParser.new(profile_html, profile_url, {timestamp: Time.now})
41
+ @output += JSON.parse(l.results_by_job)
42
+ rescue
43
+ end
41
44
  end
42
45
 
43
46
  # Print output in JSON
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: linkedincrawler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - M. C. McGrath