我第一次使用Python使用API,在这样做时,我遇到了以下错误:ValueError:cannotmixecountry/category参数和sources参数
我应该如何解决此错误
代码如下:
import config
from newsapi import NewsApiClient
newsapi = NewsApiClient(api_key=config.api_key)
top_headlines = newsapi.get_top_headlines(q='Neuralink',sources='the-verge',category='technology',language='en',country='us')```
目前没有回答
相关问题 更多 >
编程相关推荐