Commit Graph

3230 Commits

Author SHA1 Message Date
Fatpandac 0664feadb1
fix(docs): steam/search change example in docs (#9583) 2022-04-20 15:14:43 +06:00
github-actions[bot] c1af2de268 style: auto format 2022-04-19 11:53:27 +00:00
yuxinliu-alex 80aab00fdb
feat(route): 国家广播电视总局 (#9566)
* feat(route): 国家广播电视总局

* move the nrta to lib\v2\gov

* fix: feed link

* fix: radar

* fix: radar

Co-authored-by: alex <yuxin2@mgtv.com>
2022-04-19 19:51:52 +08:00
yuxinliu-alex 5f4cf8a2f0
feat(route): 参考消息 (#9564)
* feat(route): 参考消息

* fixed the router's & ref bugs

* docs: fix example

* fix: prefer https

* fix: radar

Co-authored-by: alex <yuxin2@mgtv.com>
2022-04-19 19:17:42 +08:00
Bin Wang 6b7381e1e3
feat(core): add custom fields to atom feed (#9355)
* Add custom fields to atom feed

Atom allows to extend the xml with custom namespaces. This commit is
a first commit that tries to add some custom RSSHub fields to atom feed.

In this commit, I added three very common fields: upvotes, downvotes
and comments. Lots of websites has these common fields, like Youtube,
Twitter, Reddit, HackerNews and so on. Within these fields, RSS readers
can have more information to sort the contents, and can display these
information to user in a better format.

The document has been updated to reflect these new fields. I also changed
Bilibili video route as an example to show how to add number of comments
to the generated feed.

* docs: interactions
2022-04-18 02:54:32 +08:00
尹傲雄 1e11388c90
fix(route): update zju/grs (#9551)
* update zju/grs in university

* refactor: migrate to v2

* fix: add radar

* fix: not working routes

* fix: add migration note

* docs: remove N/A types from physics table

* fix(radar): migrate old rules
2022-04-18 02:04:53 +08:00
FledgeShiu fafb2d2ed4
fix(route): chinacerf (#9554)
* fix(route): chinacerf

* Remove redundant `await`.
2022-04-17 21:42:03 +08:00
stormbuf 331405d69e
feat(route): 黄健宏博客 (#9553)
*  feat(route): add blog: huangz

* 🐞 fix(route): huangz url missing

* 📃 docs(radar): update docs url

* 📃 docs(radar): fix url

*  feat(route): add maintainer.js

* 🐞 fix(radar): fix huangz blog radar source

* Update lib/v2/huangz/index.js

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* Update lib/v2/huangz/radar.js

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* Update lib/v2/huangz/radar.js

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* Update index.js

* style: auto format

* docs: fix link break

Co-authored-by: Tony <TonyRL@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-04-17 21:33:27 +08:00
Fatpandac cff988ad9f
feat(route): add Eagle's blog and refactor to V2 (#9546)
* feat(route): add Eagle's blog and refactor to V2

* fix: remove deprecated eagle radar rules

* fix: changelog date and guid

* fix(route): add language option
2022-04-17 21:24:17 +08:00
kdan d7d6dc3022
docs: fix Route's path and example of chinacef (#9552)
* add(route): 首席经济学家论坛

* fix(route) : merge from FledgeXu

* fix(route) : merge from FledgeXu

* (fix) typo

* feat(route): remove radar from radar-rules.js

* Update lib/v2/chinacef/hot.js

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* Update lib/v2/chinacef/router.js

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* Update lib/v2/chinacef/maintainer.js

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* Update lib/v2/chinacef/experts.js

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* Update lib/v2/chinacef/experts.js

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* Update hot.js

* Update experts.js

* docs: fix Route's path and example of chinacef

* Revert "docs: fix Route's path and example of chinacef"

This reverts commit 0ec9e7d9d6d1eff201482e38a26b255478861a5c.

* docs: fix Route's path and example of chinacef

Co-authored-by: linkai <linkai@mochasoft.com.cn>
Co-authored-by: Tony <TonyRL@users.noreply.github.com>
2022-04-17 00:09:01 +08:00
Levi Zim 958be6266e
feat(route): 山东大学(威海)新闻网 (#9537)
* feat(sduwh): add extractors.

* feat(route): add route for 山东大学(威海)新闻网

* docs: for route sduwh/news

* docs: for route sduwh/news

(cherry picked from commit 831830167a39a658520dd9a46b375fdbbcb5d611)

* feat(radar): for route 山东大学(威海)新闻网

* refactor: change `got.get` to `got`.

* refactor: prefer `parseDate()` to `new Date()`

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* fix: incomplete URL substring sanitization.

Make CodeQL happy.

* fix(radar): fix target field.

* fix: change route /sduwh to /sdu/wh

* fix: remove superfluous slash character in url.

* feat: look for exact date first.

* feat: extract exact date from news extractor.

* feat: extract exact date from view extractor.

* feat: extractor for www.sdrj.sdu.edu.cn

* refactor: semantic separation of sduwh with sdu

* feat(radar): more accurate name

* docs: update documentation

* refactor: migrate to v2

* refactor: fix deprecated url.resolve

* fix: update docs url

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* fix: sdu not working routes

* fix: accurate `ctx.state.data.url`

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* fix: better error handling for extractors.

* fix: timezone

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* fix: better error handling.

Co-authored-by: Tony <TonyRL@users.noreply.github.com>
2022-04-17 00:01:39 +08:00
kdan 5622641efa
feat(route): 首席经济学家论坛 (#9550)
* add(route): 首席经济学家论坛

* fix(route) : merge from FledgeXu

* fix(route) : merge from FledgeXu

* (fix) typo

* feat(route): remove radar from radar-rules.js

* Update lib/v2/chinacef/hot.js

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* Update lib/v2/chinacef/router.js

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* Update lib/v2/chinacef/maintainer.js

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* Update lib/v2/chinacef/experts.js

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* Update lib/v2/chinacef/experts.js

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* Update hot.js

* Update experts.js

Co-authored-by: linkai <linkai@mochasoft.com.cn>
Co-authored-by: Tony <TonyRL@users.noreply.github.com>
2022-04-16 23:30:10 +08:00
Devesh Pal 08c1a032aa
docs: fix typo in english docs (#9549) 2022-04-16 12:49:59 +08:00
Tony 658570be69
fix(route): taptap topic review (#9540)
* fix(route): taptap topic review

* fix: review url

* refactor: use utility

* docs: add back warning
2022-04-15 22:04:49 +08:00
Rongrong c6a8efbb1d
docs: update cache expiry time (#9545)
Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com>
2022-04-15 22:02:30 +08:00
FledgeShiu a0f067ca71
feat(route): 首席经济学家 (#9543)
* Add chinacef router.

* Update the document.

* Move to V2.

* Fix document errors and improve the code.
2022-04-15 21:07:21 +08:00
Henry 47715045ba
docs: Translate documentation of shopping craigslist from Chinese to English. (#9536)
* Translate documentation of shopping craigslist from Chinese to English.

From docs/shopping.md to docs/en/shopping.md

* Update docs/en/shopping.md, route descrption of Craigslist

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

Co-authored-by: Tony <TonyRL@users.noreply.github.com>
2022-04-14 15:13:23 -09:00
Ethan Shen 6f98d3cee6
fix(route): 果壳网科学人 (#9531)
* fix(route): 果壳网科学人

* ref: use got instead of got.get

* ref: rename channel.js
2022-04-13 17:50:11 +08:00
Ethan Shen 55ecc71784
feat(route): add 科学网用户博客 (#9525)
* feat(route): add 科学网用户博客

* update lib/v2/sciencenet/user.js

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

Co-authored-by: Tony <TonyRL@users.noreply.github.com>
2022-04-12 04:56:50 +01:00
Tony fb2a407b02
feat(route): qbittorrent news (#9524) 2022-04-11 23:17:09 +01:00
Ethan Shen 12760cad1d
feat(route): add 大连理工大学盘锦校区 (#9515)
* feat(route): add 大连理工大学盘锦校区

* fix typo
2022-04-11 20:33:11 +08:00
Ethan Shen 4c9b820f2e
feat(route): add 大连理工大学盘锦校区教学事务办公室 (#9509) 2022-04-11 07:33:46 +08:00
TonyRL 97fe868407 docs: fix missing route tag 2022-04-10 16:25:31 +00:00
Ethan Shen 0c3888787a
feat(route): add 大连理工大学 (#8580)
* feat(route): add 大连理工大学

* add radar

* fix: add maintainer

* fix typo

* docs: fix url

* fix: incomplete multi-character sanitization
2022-04-10 23:39:24 +08:00
Odin Zhang c5741650d2
feat(route): add bookfere (#9501)
* feat(route): add bookfere

* style: auto format

* fix(route): change bookfere to v2

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-04-09 23:43:08 +08:00
Fatpandac 928b089cc8
feat(route): add 逛丢 (#9503)
* feat(route): add 逛丢

* fix(route): fix path
2022-04-09 14:18:49 +08:00
TonyRL be8b5d143f docs: fix H3 heading 2022-04-08 16:27:39 +00:00
Chenxing Luo ef94bcde8e
feat(route): add two blogs: Stratechery & Miris Whispers (#9496)
* Add two blogs

* fix(utils): add parseDate timezone common-config

* Update lib/v2/stratechery/index.js

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* Update docs/blog.md

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* Update docs/en/blog.md

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* Update lib/v2/miris/blog.js
2022-04-08 23:48:28 +08:00
NathanDai 6996efd070
fix(route):雪球 基金净值数据来源调整为蛋卷基金 (#9489)
* 雪球基金净值更新调整为蛋卷基金

* Update docs/finance.md

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* Update docs/finance.md

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* refactor: migrate to v2

* fix: parseDate

* fix: fund unnecessary String()

* feat: add radar

* fix: stock comments template

* style: add a linebreak

* docs: fund example path
2022-04-08 23:38:33 +08:00
TonyRL d09693c9b7 docs: wechat-feeds warning 2022-04-08 11:32:34 +00:00
DIYgod 8ec1046343
docs: add sponsor 2022-04-08 08:10:11 +01:00
Rongrong a79cc20ec1
feat(utils): add utils for WeChat MP (#9487)
Motivation:
There are multiple routes that need to fetch articles from WeChat MP.
However, letting them fetch articles by themselves could potentially
lead to cache key collisions. Even if cache key collisions do not occur,
un-normalized URL could potentially lead to duplicated requests.
What's more, articles from WeChat MP have weird formats and need to be
fixed. Creating a universal function to do this work can create some
ease for new route contributors.

Note:
In order to make this PR atomic as much as possible, I did not touch
those broken routes. Once this PR is merged, I will try to fix them.

Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com>
2022-04-07 21:46:15 +08:00
github-actions[bot] 1261a74eec style: auto format 2022-04-06 15:32:46 +00:00
zytomorrow d7b7a01ca1
feat(route): add gaze.run update notify (#9482)
* feat(route): add gaze.run update notify

* feat(route): add gaze.run update notify

* Update docs/multimedia.md

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* Update lib/v2/gaze/radar.js

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* Update lib/v2/gaze/templates/update.art

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* Update lib/v2/gaze/update.js

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* Update lib/v2/gaze/update.js

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

Co-authored-by: Tony <TonyRL@users.noreply.github.com>
2022-04-06 23:30:58 +08:00
Tony 521862793e
feat(route)!: remove wechat/csm wechat/wjdn (#9472) 2022-04-05 22:13:24 +08:00
Rongrong 79d9192469
fix(route)(twitter): outdated web API (#9471)
Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com>
2022-04-05 20:22:18 +08:00
Rongrong 26fbfbfa8e
feat(route): add 公众号 360 (#9457)
Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com>
2022-04-05 20:05:45 +08:00
Rongrong 7399d17591
fix(route)(weibo): misc icons break some readers (#9458)
Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com>
2022-04-04 22:38:52 +08:00
github-actions[bot] 62c33292f9 style: auto format 2022-04-04 14:33:33 +00:00
Chenxing Luo b17eaf9848
feat(route): 增加了六个美国博物馆的展讯 (#9451)
* Add New York Museums with working code

* Add Guggenheim and fix Jewish Museum

* Add pubDate for Gugg and Met Exhibitions

* Update docs

* Add New Museum and MCA Chicago, update document

* Fix en route

* Add and update radar.js

* Add Brooklyn Museum

* Reformat code

* Update route and travel information

* Fix `http` -> `https` for `radar.js`

* Change some link quotations mark

* Using `parseDate` provided by the project

* Removing "insecureHTTPParser"

* Fix JewishMuseum issue

* Use regex instead of node's vm

* Update lib/v2/jewishmuseum/exhibitions.js

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* Update lib/v2/guggenheim/exhibitions.js

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* Update docs/en/travel.md

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* Update docs/travel.md

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

Co-authored-by: Tony <TonyRL@users.noreply.github.com>
2022-04-04 22:31:48 +08:00
Rongrong 19608abd31
docs: invalid `<p>` for route params (#9455)
Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com>
2022-04-04 20:43:45 +08:00
provefar cf8cb29a14
docs: 修正冗余表述 (#9456)
API 的 `I` 就是 Interface/接口的意思, 不必再说`API 接口了`
2022-04-04 20:26:46 +08:00
Chenxing Luo 5012e71c87
docs: 格式化文档 (#9450)
* Format doc

* Update api.md

* Add <code> tag for <route> and fix English documentation

* Update docs/parameter.md

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* Update docs/parameter.md

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

Co-authored-by: Tony <TonyRL@users.noreply.github.com>
2022-04-04 20:21:24 +08:00
zytomorrow 476b3934bc
fix(route): sichuan/deyang 政府公开信息 (#9453)
* fead: add 雪球股票评论

* style: auto format

* fix: 修复雪球评论转发时未带原文

* refactor: 微博个人时间线接入util,支持可读性优化,同时打开emoji表情展示

* route: 雪球评论标题长度自定义

* style: auto format

* fix: 风之动漫域名更换

* fix: 风之漫画新域名适配

* refactor: 微博个人时间线接入util,支持可读性优化,同时打开emoji表情展示

* fix: 雪球股票评论格式调整

* fix: 风之动漫域名更换

* fix: 风之动漫link修复

* fix: 雪球股票评论正文使用art模板,日期解析调整

* feat(route): add 德阳考试中心

* feat(route): add 德阳考试中心

* fix: 风之动漫获取数量去掉限制

* fix: 风之动漫获取数量去掉限制

* fix: 风之动漫获取数量使用通用参数控制

* fix: 风之动漫获取数量使用通用参数控制

* style: auto format

* fix: dykszx

* fix: 德阳考试中心 ssl证书过期

* Merge branch 'master' of https://github.com/DIYgod/RSSHub into dykszx

* Merge branch 'master' of https://github.com/DIYgod/RSSHub into dykszx

* tmp1

* tmp2:

* tmp3

* feat(route):  add 政府公开信息

* feat(route):  add 政府公开信息

* feat(route):  add 政府公开信息

* feat(route):  add 政府公开信息

* feat(route):  add 政府公开信息

* Revert "feat(route):  add 政府公开信息"

This reverts commit c9d59af9e09b14f7357014382037b7f378d65ea7.

* feat(route):  add 政府公开信息

* fix: 修复德阳政府公开信息

* fix: 修复德阳政府公开信息

* Merge branch 'master' of https://github.com/DIYgod/RSSHub into fix_router

* Merge branch 'master' of https://github.com/DIYgod/RSSHub into fix_router

* Merge branch 'master' of https://github.com/DIYgod/RSSHub into fix_router

* fix: 修复德阳政府公开信息

Co-authored-by: GitHub Action <action@github.com>
2022-04-03 22:52:45 +08:00
github-actions[bot] 5b7b2f449a style: auto format 2022-04-02 15:41:31 +00:00
SmarT 577541f210
feat(route): add 时光网 (#9443)
* Create 1.txt

* Add files via upload

* Delete lib/v2/mtime directory

* Add files via upload

* Update multimedia.md

* Update multimedia.md

* Update and rename lib/v2/mtime/news.js to 自由/版本 2/mtime/news.js

* Delete news.js

* Add files via upload

* Update multimedia.md

* Update news.js

* Update news.js

* Update news.js

* Update news.js

* Update radar.js

* Update radar.js

* Update radar.js

* Update news.js

* Update news.js

* Update news.js
2022-04-02 08:39:50 -07:00
Rongrong 96e3b76adb
feat(route)(weibo): recognize and display Live Photo (#9440)
Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com>
2022-04-01 19:01:29 +08:00
Rongrong dc90ea977d
docs(route)(weibo): minor update (#9438)
add a warning about different responses in different regions
add my username to the author fields of `user` and `timeline`

Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com>
2022-04-01 18:42:12 +08:00
Fatpandac bb3924cac3
feat(route): npm (#9437) 2022-04-01 18:39:08 +08:00
Ethan Shen 457e8f8a41
feat(route): add 湖南日报 (#9417)
* feat(route): add 湖南日报

* docs: update category

* update docs/traditional-media.md

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

Co-authored-by: Tony <TonyRL@users.noreply.github.com>
2022-04-01 18:02:31 +08:00