This commit is contained in:
Melo Zhang 2025-04-23 11:55:13 +08:00 committed by GitHub
commit 60ef521fc5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

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