Merge 8c503bd4f3 into 7a798e481d
This commit is contained in:
commit
60ef521fc5
|
|
@ -221,7 +221,7 @@ import requests
|
|||
resp = requests.get('http://api.tianapi.com/guonei/?key=APIKey&num=10')
|
||||
if resp.status_code == 200:
|
||||
data_model = resp.json()
|
||||
for news in data_model['newslist']:
|
||||
for news in data_model['result']['newslist']:
|
||||
print(news['title'])
|
||||
print(news['url'])
|
||||
print('-' * 60)
|
||||
|
|
|
|||
Loading…
Reference in New Issue