Skip to content

Instantly share code, notes, and snippets.

@vtorica
vtorica / esma.rb
Created June 28, 2017 12:38
eatsmartの日々の記録から摂取カロリーを取得する
require 'mechanize'
require 'date'
class EatSmart
LOGIN_URL = 'https://www.eatsmart.jp/do/login/index'
# 日々の記録 末尾に'YYYYYMMDD/'が必要
DAY_URL = 'https://www.eatsmart.jp/do/esmanote/day/param/ymd/'
def initialize