'2019/05/17'에 해당되는 글 2건

  1. 2019.05.17 파이썬 simple json 파싱
  2. 2019.05.17 파이썬 web request
Phython2019. 5. 17. 14:27

import json

 

x = json.loads("json string", object_hook=lambda d: namedtuple('X', d.keys())(*d.values()))

print(x.last_price)

Posted by 동동(이재동)
Phython2019. 5. 17. 14:26

import requests

 

url = 'https://api.bitfinex.com/v1/pubticker/btcusd'

response = requests.get(url)

response.status_code

response.text

 

print(response.text)

 

 

Posted by 동동(이재동)