Skip to content

eholic/utility_scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

utility_scraper

MIT License

Quick Start

DenkiKakeibo

from utility_scraper.denki_kakeibo import DenkiKakeibo

with DenkiKakeibo('username', 'password') as dk:
    # 最新の時間データを取得
    json_dict = dk.fetch_usage_30Min()
    print(json_dict)
    # {'day': '2017/11/02', 'value': '0.10, ...

    # 前日の時間データを取得
    json_dict = dk.fetch_usage_30Min(previous=1)
    print(json_dict)
    # {'day': '2017/11/01', 'value': '0.10, ...

    # 月別のデータを取得
    json_dict = dk.fetch_usage_monthly()
    print(json_dict)
    # {'monthly': [{'month': '2015/11', 'value': {'day': '', 'kWh': '', 'payment': ''}}, 

MyTokyoGas

from utility_scraper.my_tokyo_gas import MyTokyoGas

with MyTokyoGas('username', 'password') as tg:
    # 月別のデータを取得
    json_dict = tg.fetch_usage_monthly()
    print(json_dict)
    # {'monthly': [{'month': '2015/11', 'payment': ''}, ...

License

This code is released under the MIT License, see LICENSE

About

光熱費(でんき家計簿、MyTokyoGas)のスクレイピングテスト

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages