about summary refs log tree commit diff stats
path: root/scrape.rb
diff options
context:
space:
mode:
Diffstat (limited to 'scrape.rb')
-rw-r--r--scrape.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/scrape.rb b/scrape.rb index dfeb356..8ba4b68 100644 --- a/scrape.rb +++ b/scrape.rb
@@ -91,8 +91,11 @@ def scrape_profile(profile, full)
91 game = Game.new(steam_appid: id, color: MOON_COLORS[moon_index]) 91 game = Game.new(steam_appid: id, color: MOON_COLORS[moon_index])
92 game.save 92 game.save
93 93
94 # The cookie is required for games that have an age restriction
94 storepage = Nokogiri::HTML( 95 storepage = Nokogiri::HTML(
95 open("http://store.steampowered.com/app/#{id}")) 96 open(
97 "http://store.steampowered.com/app/#{id}",
98 "Cookie" => 'birthtime=126248401'))
96 99
97 img_id = 0 100 img_id = 0
98 storepage.css(".highlight_screenshot_link").each do |node| 101 storepage.css(".highlight_screenshot_link").each do |node|