리플의 history 최종 가격을 털어오는 프로세스
일단 개념만 잡고 가는것..
=======
import json
import urllib.request
from urllib.request import Request, urlopen
from bs4 import BeautifulSoup
class bithumb:
urlhistory = urllib.request.urlopen('https://api.bithumb.com/public/transaction_history/XRP')
readhistory = urlhistory.read()
jsons = json.loads(readhistory)
#print (jsons)
datas = jsons['data']
for i in datas:
theXRPs = i
print (theXRPs)
'취미로 하는 프로그래밍 > 짭짤한 파이썬' 카테고리의 다른 글
re-컴파일 (0) | 2018.07.28 |
---|---|
flask 서버 구동 (0) | 2018.06.16 |
shutil.copytree로 디렉토리 복사하기 (0) | 2018.06.16 |
파이썬 간단한 개행처리 (0) | 2018.06.16 |
json 뷰어 (0) | 2017.12.31 |