일상 이야기/일상
Todo Lists
가마뫼
2015. 10. 13. 18:31
Blog posting
Python json
Python urllib.request
import json
import urllib.request
import urllib.parse
url = 'http://pubchem.ncbi.nlm.nih.gov/rest/pug_view/data/substance/24724290/' \
'JSON/?version=1&response_type=display'
with open('test.txt', 'w') as json_file:
with urllib.request.urlopen(url) as f:
# print(f.read().decode('utf-8'))
json_file.write(f.read().decode('utf-8'))
with open('test.txt') as json_file:
data = json.load(json_file)
print(data['Record']['Section'][2]['Section'][1]['Information'][0]['NumValue'])
Personal study
Read paper about disease-disease relationship
About coursework
BWT and LF Search video
Lab seminar
etc
Read article
Art of Command Line
Jekyll
Install PyPy in Mint
Read wikipedia
Add blog about bioinformatics to feedly
Paper survey tips
Paper reading tips
Paper survey tips
반응형