Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/utahta/maimailog

get the maimai play log
https://github.com/utahta/maimailog

Last synced: about 2 months ago
JSON representation

get the maimai play log

Awesome Lists containing this project

README

        

# Maimailog

[![Gem Version](https://badge.fury.io/rb/maimailog.svg)](http://badge.fury.io/rb/maimailog)
[![Build Status](https://travis-ci.org/utahta/maimailog.svg?branch=master)](https://travis-ci.org/utahta/maimailog)

Description
-----------
maimai のプレイ履歴を取得する

## Installation

Add this line to your application's Gemfile:

gem 'maimailog'

And then execute:

$ bundle

Or install it yourself as:

$ gem install maimailog

## Usage

ステータスを取得する

c = Maimailog::Crawler::Status.new
c.fetch(userid, passwd)

プレイ履歴を取得する

c = Maimailog::Crawler::History.new
c.login(userid, passwd)
page_num = 0
c.fetch(page_num) do |data|
p data
end

プレイ履歴を新しいものから順番に取得する

c = Maimailog::Crawler::History.new
c.login(userid, passwd)
c.fetch_all do |data|
p data
end

## Contributing

1. Fork it ( https://github.com/utahta/maimailog/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