【问题标题】:How to get full content on newapi.org如何在 newapi.org 上获取完整内容
【发布时间】:2020-07-15 13:39:52
【问题描述】:

我正在使用 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]"
},

(这只是结果的一部分)。 我想访问完整的内容。请帮助我。提前致谢。

【问题讨论】:

    标签: javascript node.js reactjs api express


    【解决方案1】:

    正如文档所说:

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

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-06-04
      • 2018-11-10
      • 2010-09-27
      • 2014-10-07
      • 1970-01-01
      • 1970-01-01
      • 2015-09-14
      相关资源
      最近更新 更多