queenshop 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/queenshop/scraper.rb +5 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4a7760cb1cbcac9f22f86460484589701d99c01
|
4
|
+
data.tar.gz: 61dfd59ba4a373ad18a2f34c42925132e1df4fc6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f76c898bd5d38b2b591d92a826162712caa5d5c08980acefba595492c02e3b765d66143b897722cf7d85aa9cd4b4b890777ed47bc552ad7d94124336e35e2f1
|
7
|
+
data.tar.gz: cc4402a3f259d942d044adfa233f194e4e511b5c835eca3e33bd73fe3273031247fcf73b3ee0ee14a830441d9e3479758fde7a38542b565eb4eb4a41be5dbd2d
|
data/lib/queenshop/scraper.rb
CHANGED
@@ -70,8 +70,11 @@ module QueenShopScraper
|
|
70
70
|
params = ARGV.empty? ? params : ARGV
|
71
71
|
conf = QConfig.new(params)
|
72
72
|
@price_filter = conf.parameters[:price]
|
73
|
-
|
74
|
-
|
73
|
+
search = "/text()[contains(
|
74
|
+
translate(.,'ABCDEFGHIJKLOMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'),
|
75
|
+
translate('#{conf.parameters[:item]}','ABCDEFGHIJKLOMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'))]"
|
76
|
+
@title_selector << search
|
77
|
+
|
75
78
|
conf.pages.map do |page|
|
76
79
|
paginated_uri = "&page=#{page}"
|
77
80
|
fetch_result(paginated_uri)
|