whos_using_what 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
@@ -52,7 +52,9 @@ class LinkedinClient < BaseApiClient
|
|
52
52
|
company_name = company_name.gsub(/\s+/, "+")
|
53
53
|
location = location.gsub(/\s+/, "+")
|
54
54
|
|
55
|
-
|
55
|
+
base_url_tmp = @@base_url
|
56
|
+
|
57
|
+
url = base_url_tmp <<
|
56
58
|
"people-search:(people:(id,first-name,last-name,public-profile-url,picture-url,headline),num-results)" <<
|
57
59
|
"?company-name=" << company_name << ",
|
58
60
|
&location=" << location
|
@@ -130,9 +130,11 @@ class GeoTagger < Base
|
|
130
130
|
|
131
131
|
def update_companies_with_latitude_longitude
|
132
132
|
|
133
|
-
|
133
|
+
puts "beginning updating of companies with latitude and longitude data"
|
134
134
|
|
135
|
-
@companies_coll.find(
|
135
|
+
@companies_coll.find('loc' => {
|
136
|
+
'$exists' => false
|
137
|
+
}).to_a.each do |company|
|
136
138
|
|
137
139
|
|
138
140
|
locations = MapDataExtractionUtil.safe_extract_helper ["locations", "values"], company, nil, nil
|
@@ -145,11 +147,13 @@ class GeoTagger < Base
|
|
145
147
|
|
146
148
|
if zip
|
147
149
|
|
150
|
+
zip = zip[0..4]
|
148
151
|
coords = @coords_coll.find_one({:zip => zip})
|
149
152
|
if coords != nil
|
150
153
|
|
151
154
|
company["loc"] = coords["loc"]
|
152
155
|
|
156
|
+
puts "updating geo-coordinates for company with id: " << company["_id"].to_s
|
153
157
|
@companies_coll.update({"_id" => company["_id"]}, company)
|
154
158
|
|
155
159
|
end
|
@@ -53,6 +53,7 @@ class DataPopulators
|
|
53
53
|
|
54
54
|
t1 = Thread.new do
|
55
55
|
|
56
|
+
=begin
|
56
57
|
begin
|
57
58
|
|
58
59
|
#@@gather_companies.load_companies_from_indeed
|
@@ -67,6 +68,7 @@ class DataPopulators
|
|
67
68
|
puts e.message
|
68
69
|
puts e.backtrace
|
69
70
|
end
|
71
|
+
=end
|
70
72
|
|
71
73
|
end
|
72
74
|
|
@@ -98,6 +100,8 @@ class DataPopulators
|
|
98
100
|
|
99
101
|
begin
|
100
102
|
|
103
|
+
@@geo_tagger.update_companies_with_latitude_longitude
|
104
|
+
|
101
105
|
# @@tech_ad_tagger.tag_company_with_technologies @@programming_languages, generate_duckduckgo_url
|
102
106
|
|
103
107
|
rescue Exception => e
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: whos_using_what
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-12-
|
12
|
+
date: 2012-12-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: oauth
|