queenshop 0.1.0 → 0.1.1
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 +4 -5
- 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: 7c2d5386fe09e0b4bd5d9427032bd575e6d7a8c9
|
4
|
+
data.tar.gz: b8aaf059ee84283a5ec22a3a1413e3cd352c74c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 217c85367a8819be4bef7e80050225d22472f29f9d8042e5c7ea4ca3071c8a9077d8568cefcbd30969023be51592a25236adf933271dd162a230f89907caf1fa
|
7
|
+
data.tar.gz: 2f5bda10a103f50abef0dc715033b6129f5d15f5dccb75e1f0a1969a074ef699b8d475c8e0240c2d4217781df80fc181e96f56ffaa0ddbb737c32b868b8e4e93
|
data/lib/queenshop/scraper.rb
CHANGED
@@ -11,7 +11,6 @@ module QueenShop
|
|
11
11
|
BASE_SCRAPE_URL = "#{BASE_URL}/m/PDList2.asp?"
|
12
12
|
|
13
13
|
LATEST_URI = "#{BASE_SCRAPE_URL}item1=new"
|
14
|
-
DISCOUNT_URI = "#{BASE_SCRAPE_URL}item1=dis"
|
15
14
|
POPULAR_URI = "#{BASE_SCRAPE_URL}item1=pre"
|
16
15
|
TOPS_URI = "#{BASE_SCRAPE_URL}brand=01&item1=00&item2=6"
|
17
16
|
PANTS_URI = "#{BASE_SCRAPE_URL}brand=01&item1=01&item2=3"
|
@@ -31,22 +30,22 @@ module QueenShop
|
|
31
30
|
end
|
32
31
|
|
33
32
|
def popular(page, options = {})
|
34
|
-
uri = uri_with_options(build_uri(
|
33
|
+
uri = uri_with_options(build_uri(POPULAR_URI, options), page)
|
35
34
|
process_request(uri, options)
|
36
35
|
end
|
37
36
|
|
38
37
|
def tops(page, options = {})
|
39
|
-
uri = uri_with_options(build_uri(
|
38
|
+
uri = uri_with_options(build_uri(TOPS_URI, options), page)
|
40
39
|
process_request(uri, options)
|
41
40
|
end
|
42
41
|
|
43
42
|
def pants(page, options = {})
|
44
|
-
uri = uri_with_options(build_uri(
|
43
|
+
uri = uri_with_options(build_uri(PANTS_URI, options), page)
|
45
44
|
process_request(uri, options)
|
46
45
|
end
|
47
46
|
|
48
47
|
def accessories(page, options = {})
|
49
|
-
uri = uri_with_options(build_uri(
|
48
|
+
uri = uri_with_options(build_uri(ACCESSORIES_URI, options), page)
|
50
49
|
process_request(uri, options)
|
51
50
|
end
|
52
51
|
|