Project

desuraify

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
A simple Desura store scraper
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
= 10.4.2

Runtime

>= 1.6.6.2
>= 0.7.1
 Project Readme

Desuraify

Desura game store scraper

Installation

Add this line to your application's Gemfile:

gem 'desuraify'

And then execute:

$ bundle

Or install it yourself as:

$ gem install desuraify

Usage

require 'desuraify'

# get all information about Dominions 4: Thrones of Ascension

# (http://www.desura.com/games/dominions-4-thrones-of-ascensions)

game = Desuraify::Game.new('dominions-4-thrones-of-ascensions')
game.update

# show current price

puts game.price
=> "$34.99"

# game title

puts game.title
=> "Dominions 4: Thrones of Ascension"

# game platforms

game.platforms.each { |platform| puts platform }
=> "Windows"
=> "Mac"
=> "Linux"

# game developers

game.developers.each do |developer|
  puts developer[:name]
  puts developer[:company]
  puts developer[:id]
end

=> "Illwinter Game Design"
=> true
=> "illwinter-game-design"

# numerous other attributes are available

puts Desuraify::Game::ATTRIBUTES.inspect
or
puts game.attributes

TODO

  1. Gather Engine data - June 12, 2015
  2. Gather Member data - July 21, 2015
  3. Gather Company data - June 13, 2015
  4. Documentation...
  5. Tests - July 21, 2015

Contributing

  1. Fork it ( https://github.com/jfrazx/desuraify/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Credits

This project and much of the code was inspired by Market Bot: https://github.com/chadrem/market_bot