email_crawler 0.0.2 → 0.0.3
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.
- checksums.yaml +4 -4
- data/README.md +3 -11
- data/lib/email_crawler/proxy.rb +2 -1
- data/lib/email_crawler/version.rb +1 -1
- 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: 9590be19e4c2c30760de7bc79dc96b7815200a74
|
|
4
|
+
data.tar.gz: 31a306c6c349a0726956aa2584d3ddb79bc46670
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 55a356b3d377a82709859c1c3bf255f3e81675a1dd2732cd7ab12ec1cf632e0409a4e888999965d0cfbacef985369abd60cdf8ddad78c632d99419bb0c73f4f4
|
|
7
|
+
data.tar.gz: 400f4480ae3f1a900ac88d5e923f5a1d9d59471ed84e945754c7b0ff7dcdc11b53df2c34e6f4be4a42144da0d679b5f4432e1657fca9aab5dd41dc5909bd5ba3
|
data/README.md
CHANGED
|
@@ -4,17 +4,9 @@ Email crawler: crawls the top ten Google search results looking for email addres
|
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
|
-
Add this line to your application's Gemfile:
|
|
8
|
-
|
|
9
|
-
gem 'email_crawler'
|
|
10
|
-
|
|
11
|
-
And then execute:
|
|
12
|
-
|
|
13
|
-
$ bundle
|
|
14
|
-
|
|
15
|
-
Or install it yourself as:
|
|
16
|
-
|
|
17
7
|
$ gem install email_crawler
|
|
8
|
+
$ cp .env.example .env
|
|
9
|
+
# set your Digital Ocean credentials (@see lib/email_crawler/proxy.rb for more details)
|
|
18
10
|
|
|
19
11
|
## Usage
|
|
20
12
|
|
|
@@ -50,7 +42,7 @@ email-crawler -q "berlin walks" -g google.de -m 250 > ~/Desktop/belin-walks-emai
|
|
|
50
42
|
|
|
51
43
|
## Contributing
|
|
52
44
|
|
|
53
|
-
1. Fork it ( http://github.com/
|
|
45
|
+
1. Fork it ( http://github.com/wecodeio/email_crawler/fork )
|
|
54
46
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
|
55
47
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
|
56
48
|
4. Push to the branch (`git push origin my-new-feature`)
|
data/lib/email_crawler/proxy.rb
CHANGED
|
@@ -15,7 +15,8 @@ module EmailCrawler
|
|
|
15
15
|
@all ||= begin
|
|
16
16
|
Dotenv.load
|
|
17
17
|
|
|
18
|
-
json = JSON.parse(open("https://api.digitalocean.com/droplets/?client_id=#{ENV['DO_CLIENT_ID']}&api_key=#{ENV['DO_API_KEY']}"
|
|
18
|
+
json = JSON.parse(open("https://api.digitalocean.com/droplets/?client_id=#{ENV['DO_CLIENT_ID']}&api_key=#{ENV['DO_API_KEY']}",
|
|
19
|
+
ssl_verify_mode: OpenSSL::SSL::VERIFY_NONE).read)
|
|
19
20
|
json["droplets"].
|
|
20
21
|
select{ |droplet| droplet["name"] =~ /proxy\d+/ }.
|
|
21
22
|
map { |droplet| droplet["ip_address"] }
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: email_crawler
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Cristian Rasch
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-02-
|
|
11
|
+
date: 2014-02-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: mechanize
|