Skip to content

增加财新网首页新闻、中国政府网滚动新闻、中国政府网新闻要闻#2533

Merged
DIYgod merged 6 commits into
DIYgod:masterfrom
EsuRt:master
Jul 4, 2019
Merged

增加财新网首页新闻、中国政府网滚动新闻、中国政府网新闻要闻#2533
DIYgod merged 6 commits into
DIYgod:masterfrom
EsuRt:master

Conversation

@EsuRt

@EsuRt EsuRt commented Jul 2, 2019

Copy link
Copy Markdown
Contributor

增加财新网首页新闻、中国政府网滚动新闻、中国政府网新闻要闻,axios 更改为 got。

@kt286

kt286 commented Jul 2, 2019

Copy link
Copy Markdown
Contributor

@EsuRt 文档也加上吧 format不过和文档没关系

Comment thread lib/routes/caixin/article.js Outdated
url: 'http://mapiv5.caixin.com//m/api/getWapIndexListByPage?page=1&callback=jQuery213030389065931348935_1560140003113&_=1560140003179',
headers: {
Referer: `http://mapiv5.caixin.com/`,
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36',

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

所以请求都有默认 User-Agent,不需要额外加 https://github.com/DIYgod/RSSHub/blob/master/lib/utils/got.js#L98

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已修改

@DIYgod DIYgod merged commit a424a95 into DIYgod:master Jul 4, 2019
@DIYgod

DIYgod commented Jul 4, 2019

Copy link
Copy Markdown
Owner

Merged, thanks!

@DIYgod DIYgod mentioned this pull request Jul 4, 2019
iplusx added a commit to iplusx/RSSHub that referenced this pull request Jul 6, 2019
* master: (38 commits)
  fix: 兼容长微博 (DIYgod#2566)
  long text compatible
  Revert "long text compatible"
  long text compatible
  fix: zaker some url 302 (DIYgod#2559)
  feat: 微博全文和准确的微博发布时间 (DIYgod#2546)
  add referer
  feat: add 中南大学招聘信息 (DIYgod#2556)
  feat: 添加NBA频道 (DIYgod#2553)
  chore(deps): update dependency rss-parser to v3.7.2 (DIYgod#2539)
  chore(deps): update dependency form-data to v2.5.0 (DIYgod#2554)
  chore(deps): update dependency luxon to v1.16.1 (DIYgod#2552)
  feat: add zaker channel (DIYgod#2550)
  fix: change uread docs (DIYgod#2549)
  feat: 增加财新网首页新闻、中国政府网滚动新闻、中国政府网新闻要闻 (DIYgod#2533)
  fix: apkpure cn pubDate (DIYgod#2547)
  feat: add aptonic Dropzone action (DIYgod#2545)
  fix code style
  fix: remove unused var
  Revert "Add Instagram account's profile image URL."
  ...
iplusx added a commit to iplusx/RSSHub that referenced this pull request Jul 6, 2019
* wangjunyu: (38 commits)
  fix: 兼容长微博 (DIYgod#2566)
  long text compatible
  Revert "long text compatible"
  long text compatible
  fix: zaker some url 302 (DIYgod#2559)
  feat: 微博全文和准确的微博发布时间 (DIYgod#2546)
  add referer
  feat: add 中南大学招聘信息 (DIYgod#2556)
  feat: 添加NBA频道 (DIYgod#2553)
  chore(deps): update dependency rss-parser to v3.7.2 (DIYgod#2539)
  chore(deps): update dependency form-data to v2.5.0 (DIYgod#2554)
  chore(deps): update dependency luxon to v1.16.1 (DIYgod#2552)
  feat: add zaker channel (DIYgod#2550)
  fix: change uread docs (DIYgod#2549)
  feat: 增加财新网首页新闻、中国政府网滚动新闻、中国政府网新闻要闻 (DIYgod#2533)
  fix: apkpure cn pubDate (DIYgod#2547)
  feat: add aptonic Dropzone action (DIYgod#2545)
  fix code style
  fix: remove unused var
  Revert "Add Instagram account's profile image URL."
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants