LoginSignup
0
5

More than 5 years have passed since last update.

Python - bitflyer チャット内容取得

Posted at

bitflyer APIでチャット内容取得

ソース

import pybitflyer

API_KEY = "XXXXXXXXXXXXX"
API_SECRET = "XXXXXXXXXXXXXXXXXXXX"

if __name__ == '__main__':
    api = pybitflyer.API(api_key = API_KEY, api_secret = API_SECRET)

    chat = api.getchats()

    print(str(chat[:3]))

結果

[{'nickname': 'UserD11D621', 'date': '2017-08-16T13:52:44.453', 'message': '47に守護神いるから大丈夫'}, {'nickname': 'デカイ・ガラ', 'date': '2017-08-16T13:52:47.753', 'message': '酔ってて見れてない電車も乗り過ごした'}, {'nickname': 'モチロール', 'date': '2017-08-16T13:52:47.65', 'message': 'ドンドコドンドコ(^o^)\u3000ウゴケー'}]
0
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
5