TrophyScraper

Collect and store trophy data for Playstation Network users.

Dependencies

  • Sqlite
  • DataMapper
  • Mechanize

Installation

Generic

gem install trophy-scraper

Ubuntu/Debian

sudo aptitude install ruby ruby-dev rubygems sqlite3 libsqlite3-dev make libopenssl-ruby libxslt-dev libxml2-dev
sudo gem install trophy-scraper

The rubygems wrapped exectuable will be located at:

/var/lib/gems/1.8/bin/trophy-scraper

Make trophy-scraper available in the default PATH:

sudo ln -s /var/lib/gems/1.8/bin/trophy-scraper /usr/bin/trophy-scraper

Usage

Adding a user / Update a single user

trophy-scraper --username "Insert Username Here"

Updating all users

trophy-scraper

Specifying a custom database location

trophy-scraper --db "sqlite3://home/joe/trophy_scraper.db"

Changing the logging options

trophy-scraper --log_level debug --log_dest "~/trophy-scraper.log" --db_log_level error --db_log_dest "~/trophy-scraper-db.log"

Help

trophy-scraper --help

Limitations

  1. Some trophies are marked as "spoilers" and will never show their name and description.
  2. Some games simply don't show up in the list of games played. Their trophies will contribute to a player's total however.

Thanks

Thanks to the Haml and Jekyll projects for a little bit of code and lot of great examples on how to layout a Ruby project.