steam_scraper 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 129284f963ebd372b9afba769e1da4dc4e541f33
4
- data.tar.gz: 1da952ef7ac1b425d837d79cac0a14cfcff76695
3
+ metadata.gz: 9958f39a1e2f9c51372f238918e2303b0c15259a
4
+ data.tar.gz: ecfd0ba052682695efa842f7a8e0a47a63c9891c
5
5
  SHA512:
6
- metadata.gz: ce43a448f7707cfb5036b4815d7f4c66d19e5561aa65d4bfb8a302337ae20612083ee65a87d6828d931028168ca3dfcd8374f1f0b6ca6cf072ca0917b1648a37
7
- data.tar.gz: 230a3c1e53a67efc3e6476e25b2807c88e6d7ec1f0f498089e9c0feccdfc83caef79e6c4153785ae73dca6fd56dd301eee330ca5412de889adcf2da33c51b14e
6
+ metadata.gz: 930c86979409dc3afdf5f110f29cf094a43a0da053a538f41bca0f627070f0cf1ec953a5ad16347840112a933df1906c1a8937210fec9371c0172e89f4b89e45
7
+ data.tar.gz: 5e858bac10ac562da81560db4f9ab258788b03a4dc0631b268fd9311338aa8632ff7ab98a342eb32c9d88833585ef32ddac762cffa9d5d558d98bafb571fdfad
data/README.md CHANGED
@@ -21,14 +21,14 @@ Or install it yourself as:
21
21
  To scrape all pages from the steam store:
22
22
 
23
23
  ```Ruby
24
- scraper = SteamScraper.new
24
+ scraper = SteamScraper::SteamScraper.new
25
25
  results = scraper.scrape
26
26
  ```
27
27
 
28
28
  To scrape a range of pages from the steam store:
29
29
 
30
30
  ```Ruby
31
- scraper = SteamScraper.new
31
+ scraper = SteamScraper::SteamScraper.new
32
32
  results = scraper.scrape(first_page, last_page)
33
33
  ```
34
34
 
@@ -68,6 +68,9 @@ class GamePageScraper
68
68
 
69
69
  def scrape_min_spec(page_contents)
70
70
  spec_block = page_contents.xpath("//div[@data-os='win']/div[@class='game_area_sys_req_leftCol']/ul/ul")
71
+ if spec_block.empty?
72
+ spec_block = page_contents.xpath("//div[@data-os='win']/div[@class='game_area_sys_req_full']/ul/ul")
73
+ end
71
74
  scrape_spec(spec_block)
72
75
  end
73
76
 
@@ -1,3 +1,3 @@
1
1
  module SteamScraper
2
- VERSION = '1.1.0'.freeze
2
+ VERSION = '1.1.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: steam_scraper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Gardner