Card database and deck builder for online CCG http://klanz.ru
Players feedback on the game forum: here.
- Flexible and fast card search and filters
- Player's decks database
- Star cards sale schedule
- Cards parser
- In the lib directory there is a parser.rb
- Run it as usual ruby script
- Wait until all cards are parsed
- You can find the result cards data in the cards.json in the same folder
art_link = card.at_css('.avatar-wrap').at_css('img').attributes['src']
download_art art_link, id
If you want arts to be downloaded too just uncomment this code and all images will be downloaded.
There is some issues: on the main site arts are stored in the different formats: jpg, png, gif. The worst thing is that some cards are stored with no extension though they are still jpg.
Thats it!
Ruby on Rails pet-project