linkedindata 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/linkedindata.rb +4 -2
- 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: 94bb03be0b7d5757a4ec8175b829db45bf1ea0d5
|
4
|
+
data.tar.gz: c51b94a00043330d9ba9b821c7ecdb47a11b3340
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 306b9d008c6f5958357ff94b2b07379e5bbf66631a343133d7471c459a5eaf66a5e6fd3d5d8cdeb6caca3d6b56873718c7f07ee049f2c4c329f8f106105dd6a4
|
7
|
+
data.tar.gz: 15d39ed929395b149807868875a614c188a22bacf773d546cc5fce84080ab8db732558bd29de5e9819f12ccb429c21c4a10c85544dd02e48bec4bc4a649df4ad
|
data/lib/linkedindata.rb
CHANGED
@@ -5,6 +5,7 @@ require 'nokogiri'
|
|
5
5
|
require 'open-uri'
|
6
6
|
load 'parseprofile.rb'
|
7
7
|
require 'pry'
|
8
|
+
require 'urlarchiver'
|
8
9
|
|
9
10
|
class LinkedinData
|
10
11
|
def initialize(input, todegree)
|
@@ -53,7 +54,7 @@ class LinkedinData
|
|
53
54
|
sleep(rand(5..10))
|
54
55
|
@startindex += 10
|
55
56
|
agent = Mechanize.new
|
56
|
-
|
57
|
+
examine(agent.get("http://google.com" + link.href))
|
57
58
|
end
|
58
59
|
end
|
59
60
|
end
|
@@ -78,6 +79,7 @@ class LinkedinData
|
|
78
79
|
# Gets all data and returns in JSON
|
79
80
|
def getData
|
80
81
|
search
|
81
|
-
|
82
|
+
formatted_json = JSON.pretty_generate(@output)
|
83
|
+
return formatted_json
|
82
84
|
end
|
83
85
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: linkedindata
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
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:
|
11
|
+
date: 2015-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Scrapes all LinkedIn profiles including terms you specify.
|
14
14
|
email: shidash@shidash.com
|