提问者:小点点

如何获取Newapi.org上的全部内容


我正在使用Newsorg的api创建一个网站。 当我将请求发送到API时,我得到以下输出:

"articles": [
-{
-"source": {
"id": null,
"name": "Hindustan Times"
},
"author": "HT Correspondent | Edited by Ashutosh Tripathi",
"title": "‘Come back to your home in Jaipur’: Congress to Sachin Pilot after his ‘not joining BJP’ remark - Hindustan Times",
"description": "It was only yesterday that the party sacked Pilot as deputy chief minister and also from the post of Rajasthan Pradesh Congress chief.",
"url": "https://www.hindustantimes.com/india-news/come-back-to-your-home-in-jaipur-congress-to-sachin-pilot-after-his-not-joining-bjp-remark/story-XafsBaEGxr8MqS5rqlsFsI.html",
"urlToImage": "https://www.hindustantimes.com/rf/image_size_960x540/HT/p2/2020/07/15/Pictures/_c339ab02-c68e-11ea-be81-f7b2e356804f.jpg",
"publishedAt": "2020-07-15T11:32:00Z",
"content": "Stop all conversation with the BJP and head back to your home in Jaipur, the Congress impressed upon Sachin Pilot in yet another outreach attempt. The state has been teetering on the edge since Pilot… [+2049 chars]"
},

(这只是结果的一部分)。 我想获得完整的内容,请帮助我。谢谢。


共1个答案

匿名用户

正如文件所说:

内容字符串文章的未格式化内容(如果可用)。 这将被截断为200个字符。

你不能有所有的内容,只有200个字符,你应该去URL有完整的内容

他们不会让你“窃取”所有的网站内容