FreedomCoder-esearchy 0.1.2 → 0.1.2.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.
- data/README.rdoc +2 -2
- data/bin/esearchy +38 -2
- data/lib/esearchy.rb +1 -1
- metadata +3 -2
data/README.rdoc
CHANGED
@@ -115,8 +115,8 @@ Not short of that now, we also have the possibility of choosing between a Librar
|
|
115
115
|
* rubyzip ( Migrating to FreedomCoder-rubyzip 0.9.2 so it's 1.9 compatible)
|
116
116
|
|
117
117
|
== INSTALL:
|
118
|
-
|
119
|
-
* sudo gem install freedomcoder-esearchy
|
118
|
+
* > sudo gem sources -a http://gems.github.com (If you do not have the repository)
|
119
|
+
* > sudo gem install freedomcoder-esearchy
|
120
120
|
|
121
121
|
== THANKS:
|
122
122
|
|
data/bin/esearchy
CHANGED
@@ -10,9 +10,20 @@ require 'esearchy'
|
|
10
10
|
@domains = []
|
11
11
|
@output = nil
|
12
12
|
@company = []
|
13
|
+
@no_eng = Hash.new
|
13
14
|
|
14
15
|
opts = GetoptLong.new(
|
15
16
|
[ '--help', '-h', GetoptLong::NO_ARGUMENT ],
|
17
|
+
[ '--disable-google', GetoptLong::NO_ARGUMENT ],
|
18
|
+
[ '--disable-yahoo', GetoptLong::NO_ARGUMENT ],
|
19
|
+
[ '--disable-bing', GetoptLong::NO_ARGUMENT ],
|
20
|
+
[ '--disable-altavisa', GetoptLong::NO_ARGUMENT ],
|
21
|
+
[ '--disable-linkedin', GetoptLong::NO_ARGUMENT ],
|
22
|
+
[ '--disable-gprofiles', GetoptLong::NO_ARGUMENT ],
|
23
|
+
[ '--disable-naymz', GetoptLong::NO_ARGUMENT ],
|
24
|
+
[ '--disable-ggroups', GetoptLong::NO_ARGUMENT ],
|
25
|
+
[ '--disable-pgp', GetoptLong::NO_ARGUMENT ],
|
26
|
+
[ '--disable-usenet', GetoptLong::NO_ARGUMENT ],
|
16
27
|
['--domain','-d', GetoptLong::REQUIRED_ARGUMENT ],
|
17
28
|
['--company','-c', GetoptLong::REQUIRED_ARGUMENT ],
|
18
29
|
['--file','-f', GetoptLong::REQUIRED_ARGUMENT ],
|
@@ -41,6 +52,26 @@ opts.each do |opt, arg|
|
|
41
52
|
Copyright 2009 - FreedomCoder\n"
|
42
53
|
#END OF HELP
|
43
54
|
exit(0)
|
55
|
+
when '--disable-google':
|
56
|
+
@no_eng[:google] = false
|
57
|
+
when '--disable-yahoo':
|
58
|
+
@no_eng[:yahoo] = false
|
59
|
+
when '--disable-bing':
|
60
|
+
@no_eng[:bing] = false
|
61
|
+
when '--disable-altavisa':
|
62
|
+
@no_eng[:altavista] = false
|
63
|
+
when '--disable-linkedin':
|
64
|
+
@no_eng[:linkedin] = false
|
65
|
+
when '--disable-gprofiles':
|
66
|
+
@no_eng[:googleprofiles] = false
|
67
|
+
when '--disable-naymz':
|
68
|
+
@no_eng[:naymz] = false
|
69
|
+
when '--disable-ggroups':
|
70
|
+
@no_eng[:googlegroups] = false
|
71
|
+
when '--disable-pgp':
|
72
|
+
@no_eng[:pgp] = false
|
73
|
+
when '--disable-usenet':
|
74
|
+
@no_eng[:usenet] = false
|
44
75
|
when '--domain':
|
45
76
|
@domains << arg
|
46
77
|
when '--company':
|
@@ -76,13 +107,18 @@ end
|
|
76
107
|
require 'esearchy'
|
77
108
|
puts "This is just an example tool ESearchy is more and more a piece of code intended to work as a Library and you should create your own little.rb file :)"
|
78
109
|
|
110
|
+
ESearchy::LOG.level = ESearchy::APP
|
111
|
+
|
79
112
|
@domains.each_with_index do |domain, idx|
|
80
113
|
ESearchy.create domain do |d|
|
114
|
+
@no_eng.each do |eng,val|
|
115
|
+
search_engine(eng, val)
|
116
|
+
end
|
81
117
|
d.yahoo_key = @yahoo_key if @yahoo_key
|
82
118
|
d.bing_key = @bing_key if @bing_key
|
83
119
|
d.maxhits = @maxhits if @maxhits
|
84
|
-
if @li_username and @li_password
|
85
|
-
d.linkedin_credentials
|
120
|
+
if (@li_username and @li_password)
|
121
|
+
d.linkedin_credentials= [@li_username, @li_password]
|
86
122
|
else
|
87
123
|
d.linkedin_credentials = ESearchy.bugmenot
|
88
124
|
end
|
data/lib/esearchy.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: FreedomCoder-esearchy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.2
|
4
|
+
version: 0.1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matias P. Brutti
|
@@ -83,6 +83,7 @@ files:
|
|
83
83
|
- README.rdoc
|
84
84
|
has_rdoc: true
|
85
85
|
homepage: http://freedomcoder.com.ar/esearchy
|
86
|
+
licenses:
|
86
87
|
post_install_message:
|
87
88
|
rdoc_options: []
|
88
89
|
|
@@ -103,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
103
104
|
requirements: []
|
104
105
|
|
105
106
|
rubyforge_project:
|
106
|
-
rubygems_version: 1.
|
107
|
+
rubygems_version: 1.3.5
|
107
108
|
signing_key:
|
108
109
|
specification_version: 2
|
109
110
|
summary: A library to search for emails in search engines
|