image-dumper 0.8.2 → 0.8.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dumper/profiles/yande.rb +4 -2
- data/lib/dumper/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: 7d9b1ddab894fca19619178faebbf143c6b73e11
|
4
|
+
data.tar.gz: 806c1522ab4d1bd445fa576f7901dbefdc5cb071
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55773153cbc02d2859b78d08727edfbdfa83fae16605a9c5c505f393fa2b07d1c138b3c5125701ca94bd3f393eaf6adcc1d8c1a3ce8b80d100b2fa507b941c2e
|
7
|
+
data.tar.gz: 1f3126eb47e9de2ca8730774fb69ebdf945fc49d1907c0b44e7e4a0b6920a05a8e8490cccad5d4092001527337c6249031906f55adc8709b84308e792153db3d
|
@@ -27,8 +27,10 @@ module Dumper
|
|
27
27
|
|
28
28
|
Nokogiri::HTML(open("#{url}&page=#{i}", 'User-Agent' => Dumper::USER_AGENT, 'Referer' => url)).xpath('//a[@class="thumb"]/@href').each { |p|
|
29
29
|
@pool.process {
|
30
|
-
|
31
|
-
|
30
|
+
img = Nokogiri::HTML(open('https://' + URI.parse(url).hostname + p,
|
31
|
+
'User-Agent' => Dumper::USER_AGENT,
|
32
|
+
'Referer' => url
|
33
|
+
)).at_xpath('//a[@class="original-file-unchanged"]/@href').text
|
32
34
|
Dumper.get path, img, { referer: url }
|
33
35
|
}
|
34
36
|
}
|
data/lib/dumper/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: image-dumper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Giovanni Capuano
|
@@ -254,7 +254,7 @@ files:
|
|
254
254
|
- spec/yande_spec.rb
|
255
255
|
homepage: https://github.com/RoxasShadow
|
256
256
|
licenses:
|
257
|
-
- GPL-3
|
257
|
+
- GPL-3.0
|
258
258
|
metadata: {}
|
259
259
|
post_install_message:
|
260
260
|
rdoc_options: []
|