generalscraper 0.0.16 → 0.0.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/captcha.rb +5 -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: 6c9fcc3a50fbae1effcfb966314d661864b69660
|
4
|
+
data.tar.gz: d7d531be1950701d9a41b99d5b14b6ec52c53d60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1dfa666cfec3edce4db6cd0c81d2e68892c07237b3e6246e04fc76f56e1e09f6e56e04fa92e310d9822c7fa637c16ba7e58c7f86ba685685aee5ef9cc47e66b
|
7
|
+
data.tar.gz: db4ca31e96eec12dfefae8ff9648171f76e607b13d076fb90cec26a2ca30c9dbcfce0d806270ce85c149d40ff0901a8f2ff5ef837a21836ed6778075dacc4925
|
data/lib/captcha.rb
CHANGED
@@ -22,7 +22,11 @@ class Captcha
|
|
22
22
|
# Have the captcha solved
|
23
23
|
def get_captcha_solved
|
24
24
|
client = TwoCaptcha.new(@captcha_key)
|
25
|
-
|
25
|
+
begin
|
26
|
+
captcha = client.decode!(file: File.open(@time_name+"_cropped.png"))
|
27
|
+
rescue # If it times out
|
28
|
+
get_captcha_solved
|
29
|
+
end
|
26
30
|
return captcha.text
|
27
31
|
end
|
28
32
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: generalscraper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.17
|
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: 2015-12-
|
11
|
+
date: 2015-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Scrapes Google
|
14
14
|
email: shidash@shidash.com
|