esearchy 0.2.0.6 → 0.2.0.7
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.
- data/bin/esearchy +8 -7
- data/lib/esearchy/SocialEngines/classmates.rb +4 -3
- data/lib/esearchy/SocialEngines/googleprofiles.rb +4 -3
- data/lib/esearchy/SocialEngines/jigsaw.rb +3 -2
- data/lib/esearchy/SocialEngines/linkedin.rb +4 -3
- data/lib/esearchy/SocialEngines/naymz.rb +3 -2
- data/lib/esearchy/SocialEngines/plaxo.rb +3 -2
- data/lib/esearchy/SocialEngines/spoke.rb +4 -3
- data/lib/esearchy/SocialEngines/ziggs.rb +3 -2
- data/lib/esearchy/docs.rb +1 -1
- data/lib/esearchy/esearchy.rb +1 -1
- data/lib/esearchy/genericengine.rb +1 -1
- metadata +3 -3
data/bin/esearchy
CHANGED
@@ -148,7 +148,7 @@ def print_(list)
|
|
148
148
|
print_linux(item)
|
149
149
|
end
|
150
150
|
when Array
|
151
|
-
puts item.join " "
|
151
|
+
puts item[0].join " " + "-->" + item[1]
|
152
152
|
end
|
153
153
|
end
|
154
154
|
end
|
@@ -190,7 +190,7 @@ class Output
|
|
190
190
|
private
|
191
191
|
def save_csv(data)
|
192
192
|
out = File.new(@output, "w")
|
193
|
-
out << "EMAILS/PERSON, TYPE, CLASS, MATCH\n"
|
193
|
+
out << "EMAILS/PERSON, TYPE, SITE, CLASS, MATCH\n"
|
194
194
|
data.each { |r| out << "#{r[0].to_s},#{r[1]},#{r[2]},#{r[3]}\n"}
|
195
195
|
end
|
196
196
|
|
@@ -201,7 +201,7 @@ class Output
|
|
201
201
|
Prawn::Document.generate(@output) do
|
202
202
|
table data,
|
203
203
|
:position => :center,
|
204
|
-
:headers => ["Email/Person", "Type", "Class", "Match"],
|
204
|
+
:headers => ["Email/Person", "Type", "Site", "Class", "Match"],
|
205
205
|
:header_color => "0046f9",
|
206
206
|
:row_colors => :pdf_writer, #["ffffff","ffff00"],
|
207
207
|
:font_size => 10,
|
@@ -217,12 +217,13 @@ class Output
|
|
217
217
|
id integer primary key asc,
|
218
218
|
object text,
|
219
219
|
type char,
|
220
|
+
site text,
|
220
221
|
class text,
|
221
222
|
match char);")
|
222
223
|
|
223
224
|
data.each do |r|
|
224
|
-
@db.execute("INSERT INTO results (object,type,class,match)
|
225
|
-
VALUES (\"#{r[0].to_s}\",\"#{r[1]}\",\"#{r[2]}\",\"#{r[3]}\");")
|
225
|
+
@db.execute("INSERT INTO results (object,type,site,class,match)
|
226
|
+
VALUES (\"#{r[0].to_s}\",\"#{r[1]}\",\"#{r[2]}\",\"#{r[3]}\",\"#{r[4]}\");")
|
226
227
|
end
|
227
228
|
#@db.commit
|
228
229
|
end
|
@@ -258,8 +259,8 @@ def execute(p)
|
|
258
259
|
end
|
259
260
|
@output.save(search.results) if @output
|
260
261
|
puts "-------FINAL RESULTS--------"
|
261
|
-
print_ search.emails
|
262
|
-
print_ search.people
|
262
|
+
print_ search.emails.uniq
|
263
|
+
print_ search.people.uniq
|
263
264
|
end
|
264
265
|
end
|
265
266
|
|
@@ -23,9 +23,10 @@ module ESearchy
|
|
23
23
|
|
24
24
|
def crawl_people(html)
|
25
25
|
html.scan(/<a href="([0-9A-Za-z:\\\/?&=@+%.;"'()_-]+)" class=l[\sonmousedown="return clk(this.href,'','','res','\d','')"]*>([\w\s]*) \|/).each do |profile|
|
26
|
-
|
27
|
-
|
28
|
-
@
|
26
|
+
profile = profile[0].to_s
|
27
|
+
person = profile[1].split(" ")
|
28
|
+
@people << [ p, profile ]
|
29
|
+
@results << [person, "P", profile, self.class.to_s.upcase, "N"]
|
29
30
|
end
|
30
31
|
end
|
31
32
|
end
|
@@ -26,9 +26,10 @@ module ESearchy
|
|
26
26
|
|
27
27
|
def crawl_people(text)
|
28
28
|
text.scan(/<a href="([0-9A-Za-z:\\\/?&=@+%.;"'()_-]+)" class=l[\sonmousedown="return clk(this.href,'','','res','\d','')"]*>([\w\s]*) -/).each do |profile|
|
29
|
-
|
30
|
-
|
31
|
-
@
|
29
|
+
profile = profile[0].to_s
|
30
|
+
person = profile[1].split(" ")
|
31
|
+
@people << [ p, profile ]
|
32
|
+
@results << [person, "P",profile, self.class.to_s.upcase, "N"]
|
32
33
|
end
|
33
34
|
end
|
34
35
|
end
|
@@ -26,9 +26,10 @@ module ESearchy
|
|
26
26
|
|
27
27
|
def crawl_people(text)
|
28
28
|
text.scan(/<a href="(http\:\/\/www.jigsaw.com\/scid[0-9A-Za-z\/?&=@+%.;'_-]+\.xhtml)" class=l[\sonmousedown="return clk(this.href,'','','res','\d','')"]*>([\w\s]*),/).each do |profile|
|
29
|
+
profile = profile[0].to_s
|
29
30
|
p = profile[1].split(" ")
|
30
|
-
@people << p
|
31
|
-
@results << [p, "P", self.class.to_s.upcase, "N"]
|
31
|
+
@people << [ p, profile ]
|
32
|
+
@results << [p, "P", profile, self.class.to_s.upcase, "N"]
|
32
33
|
end
|
33
34
|
end
|
34
35
|
end
|
@@ -25,9 +25,10 @@ module ESearchy
|
|
25
25
|
|
26
26
|
def crawl_people(text)
|
27
27
|
text.scan(/<a href="([0-9A-Za-z:\\\/?&=@+%.;"'()_-]+)" class=l[\sonmousedown="return clk(this.href,'','','res','\d','')"]*>([\w\s]*) -/).each do |profile|
|
28
|
-
|
29
|
-
|
30
|
-
@
|
28
|
+
profile = profile[0].to_s
|
29
|
+
p = profile[1].split(" ")
|
30
|
+
@people << [ p, profile ]
|
31
|
+
@results << [p, "P", profile, self.class.to_s.upcase, "N"]
|
31
32
|
end
|
32
33
|
end
|
33
34
|
end
|
@@ -24,11 +24,12 @@ module ESearchy
|
|
24
24
|
|
25
25
|
def crawl_people(html)
|
26
26
|
html.scan(/<a href="([0-9A-Za-z:\\\/?&=@+%.;"'()_-]+)" class=l[\sonmousedown="return clk(this.href,'','','res','\d','')"]*>([\w\s]*) -/).each do |profile|
|
27
|
+
profile = profile[0].to_s
|
27
28
|
person = profile[1].split(" ").delete_if do
|
28
29
|
|x| x =~ /mr.|mr|ms.|ms|phd.|dr.|dr|phd|phd./i
|
29
30
|
end
|
30
|
-
@people <<
|
31
|
-
@results << [person, "P", self.class.to_s.upcase, "N"]
|
31
|
+
@people << [ p, profile ]
|
32
|
+
@results << [person, "P", profile, self.class.to_s.upcase, "N"]
|
32
33
|
end
|
33
34
|
end
|
34
35
|
end
|
@@ -26,9 +26,10 @@ module ESearchy
|
|
26
26
|
|
27
27
|
def crawl_people(text)
|
28
28
|
text.scan(/<a href="([0-9A-Za-z:\\\/?&=@+%.;"'()_-]+)" class=l[\sonmousedown="return clk(this.href,'','','res','\d','')"]*>([\w\s]*)'/).each do |profile|
|
29
|
+
profile = profile[0].to_s
|
29
30
|
p = profile[1].split(" ")
|
30
|
-
@people << p
|
31
|
-
@results << [p, "P", self.class.to_s.upcase, "N"]
|
31
|
+
@people << [ p, profile ]
|
32
|
+
@results << [p, "P", profile, self.class.to_s.upcase, "N"]
|
32
33
|
end
|
33
34
|
end
|
34
35
|
end
|
@@ -25,9 +25,10 @@ module ESearchy
|
|
25
25
|
|
26
26
|
def crawl_people(text)
|
27
27
|
text.scan(/<a href="([0-9A-Za-z:\\\/?&=@+%.;"'()_-]+)" class=l[\sonmousedown="return clk(this.href,'','','res','\d','')"]*>([\w\s]*),/).each do |profile|
|
28
|
-
|
29
|
-
|
30
|
-
@
|
28
|
+
profile = profile[0].to_s
|
29
|
+
p = profile[1].split(" ")
|
30
|
+
@people << [ p, profile ]
|
31
|
+
@results << [p, "P", profile, self.class.to_s.upcase, "N"]
|
31
32
|
end
|
32
33
|
end
|
33
34
|
end
|
@@ -26,9 +26,10 @@ module ESearchy
|
|
26
26
|
|
27
27
|
def crawl_people(text)
|
28
28
|
text.scan(/<a href="([0-9A-Za-z:\\\/?&=@+%.;"'()_-]+)" class=l[\sonmousedown="return clk(this.href,'','','res','\d','')"]*>([\w\s]*) -/).each do |profile|
|
29
|
+
profile = profile[0].to_s
|
29
30
|
p = profile[1].split(" ")
|
30
|
-
@people << p
|
31
|
-
@results << [p, "P", self.class.to_s.upcase, "N"]
|
31
|
+
@people << [ p, profile ]
|
32
|
+
@results << [p, "P", profile, self.class.to_s.upcase, "N"]
|
32
33
|
end
|
33
34
|
end
|
34
35
|
end
|
data/lib/esearchy/docs.rb
CHANGED
@@ -249,7 +249,7 @@ module ESearchy
|
|
249
249
|
c_list = fix(list)
|
250
250
|
@emails.concat(c_list).uniq!
|
251
251
|
c_list.zip do |e|
|
252
|
-
@results << [e[0], "E", self.class.to_s.upcase,
|
252
|
+
@results << [e[0], "E", "",self.class.to_s.upcase,
|
253
253
|
e[0].match(/#{CGI.unescape(ESearchy::Search.query).gsub("@","").split('.')[0]}/) ? "T" : "F"]
|
254
254
|
end
|
255
255
|
end
|
data/lib/esearchy/esearchy.rb
CHANGED
@@ -136,7 +136,7 @@ module ESearchy
|
|
136
136
|
c_list = fix(list)
|
137
137
|
@emails.concat(c_list).uniq!
|
138
138
|
c_list.zip do |e|
|
139
|
-
@results << [e[0], "E", self.class.to_s.upcase,
|
139
|
+
@results << [e[0], "E", "",self.class.to_s.upcase,
|
140
140
|
e[0].downcase.match(/#{CGI.unescape(@query).gsub("@","").split('.')[0]}/) ? "T" : "F"]
|
141
141
|
end
|
142
142
|
end
|
metadata
CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
|
|
6
6
|
- 0
|
7
7
|
- 2
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.2.0.
|
9
|
+
- 7
|
10
|
+
version: 0.2.0.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Matias P. Brutti
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-03-
|
18
|
+
date: 2010-03-22 00:00:00 -03:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|