Python --bitflyer Get chat content

Get chat content with bitflyer API

Source

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]))

result

[{'nickname': 'UserD11D621', 'date': '2017-08-16T13:52:44.453', 'message': 'It's okay because there is a guardian deity at 47'}, {'nickname': 'Big Gala', 'date': '2017-08-16T13:52:47.753', 'message': 'I overcame the train that I couldn't see because I was drunk'}, {'nickname': 'Mochiroll', 'date': '2017-08-16T13:52:47.65', 'message': 'Don't Don't Don't(^o^)\u3000 Ugoka'}]

Recommended Posts

Python --bitflyer Get chat content
Python --bitflyer Get asset balance
[Python] Get environment variables
[Python] Get Qiita trends
[Python3] Get date diff
Get date in Python
Get date with python
Python --bitflyer Bitcoin trading
python get current time
Get country code with python
Auto-complete YAML content with Python
Get last month in python
Get Twitter timeline with python
Get Terminal size in Python
[Python] Get the previous month
Explicitly get EOF in python
Get started with Python! ~ ② Grammar ~
[python] Get quotient and remainder
Get stock price with Python
Get Evernote notes in Python
python> Get substring> print serial [5:10] / print serial [5: -1]
Get home directory with python
Get keyboard events with python
IfcOpenShell python bindings get started
(Python) Get AWS billing amount
Get Alembic information with Python
Python> dictionary> get ()> optional value
Get Japanese synonyms in Python
Get Leap Motion data in Python.
Link to get started with python
Get data from Quandl in Python
Get the complete bitflyer tick data
Get the desktop path in Python
Get the weather with Python requests
Get the weather with Python requests 2
[Python] Get economic data with DataReader
Get the script path in Python
How to get the Python version
How to get started with Python
[Small story] Get timestamp with Python
Get, post communication memo in Python
Get Qiita trends with Python scraping
Get upcoming weather from python weather api
Get the desktop path in Python
Get the host name in Python
Python Note: Get the current month
Python version to get unused ports
Get started with Python in Blender
Get weather information with Python & scraping