Commit Graph

700 Commits

Author SHA1 Message Date
Rongrong
bab100a487 feat(route/twitter): allow force using Web API (#9760)
Signed-off-by: Rongrong <i@rong.moe>
2022-05-15 22:17:23 +08:00
Tony
039e8eb80f fix(route): nature (#9748) 2022-05-14 00:37:06 +08:00
KotaHv
3205a1de20 fix(route): Epic Games Store (#9746) 2022-05-13 06:06:45 -04:00
Liu233w
145ad517b6 feat: add immiau (#9722)
* feat(route): add immiau

Add news entry of Immigration and Citizenship, Department of Home Affairs, Australia.

* feat(route): add cn document for immiau

* refactor(router): move immiau to gov folder
2022-05-08 23:27:19 +08:00
Hagb (Junyu Guo 郭俊余)
eb79456f40 docs: support parameter suffix * (#7946)
* docs: support parameter suffix `*`

`*` denotes a zero or more parameter matches, so the parameter including `*` is optional. (https://github.com/pillarjs/path-to-regexp#zero-or-more)

* docs: mention the parameter suffix `*`

* docs: support parameter suffix `+`

* docs: add document of parameter suffixs

* docs: fix having / at the end of parameter

* docs: add missing changes in en docs

* docs: typo

Co-authored-by: TonyRL <TonyRL@users.noreply.github.com>
2022-05-07 17:18:35 +08:00
Ethan Shen
3323398731 fix(route): Epic Games Store (#9712)
* fix(route): Epic Games Store

* docs: add locale and country
2022-05-07 00:28:40 +08:00
Halcao
be1a1b303c fix(route): uraaka-joshi (#7908)
* modify uraaka-joshi to puppeteer

* style: auto format

* fix(route): uraaka-joshi and user

* docs: fix author

Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: TonyRL <TonyRL@users.noreply.github.com>
2022-05-05 04:22:23 +08:00
Rongrong
a5d74e521c feat(core/middleware/anti-hotlink): route matching (#9681)
* feat(core/middleware/anti-hotlink): route matching

Signed-off-by: Rongrong <i@rong.moe>

* fix(test): coverage

Signed-off-by: Rongrong <i@rong.moe>

* docs(install): fix mistaken config key

Signed-off-by: Rongrong <i@rong.moe>
2022-05-04 03:29:23 +08:00
Rongrong
d676247f05 docs(parameter): URL encode warning (#9678)
Signed-off-by: Rongrong <i@rong.moe>
2022-05-03 03:34:13 +08:00
Rongrong
7a6be9a229 feat(core): customizable Chromium executable path (#9670)
* feat(core): customizable Chromium executable path

also build Chromium-bundled Docker image for arm/arm64

Signed-off-by: Rongrong <i@rong.moe>

* chore: fix typo

Signed-off-by: Rongrong <i@rong.moe>

* chore(CI/test): using build matrix

Signed-off-by: Rongrong <i@rong.moe>

* docs(install): fix punctuation

Signed-off-by: Rongrong <i@rong.moe>
2022-05-01 21:00:29 +08:00
Rongrong
05fd12eb35 chore(coverage): exclude lib/router.js; link fix (#9671)
Signed-off-by: Rongrong <i@rong.moe>
2022-05-01 18:08:33 +08:00
Dag
a306f8e89f docs: add example to curiouscat that works (#9672) 2022-05-01 12:15:21 +07:00
Rongrong
72070d40cc chore(*): fix code coverage not uploaded (#9661)
Signed-off-by: Rongrong <i@rong.moe>
2022-04-30 07:37:23 +08:00
zoenglinghou
9b176217f3 docs: Update documentation for IMAP config to reflect #8212 (#9657) 2022-04-29 10:00:56 +00:00
Zhiyang Guo
4f5699ba0e feat(route): add Zotero (#9650)
* feat(route): add Zotero

* docs: add en docs

* docs: use chinese for cn docs
2022-04-29 01:19:12 +08:00
Rongrong
d8c00ec238 build(docker): optimize; add Chromium bundled ver (#9626)
* build(docker): optimize; add Chromium bundled ver

Signed-off-by: Rongrong <i@rong.moe>

* build(Dockerfile): fix redundant command and label

Signed-off-by: Rongrong <i@rong.moe>

* build(docker): only install prod deps to speed up

Signed-off-by: Rongrong <i@rong.moe>

* docs(install): minor fixes

Signed-off-by: Rongrong <i@rong.moe>

* build(Dockerfile): bump to `node:16-bullseye-slim`

Signed-off-by: Rongrong <i@rong.moe>

* build(Dockerfile): fix yarn registry mirror

Signed-off-by: Rongrong <i@rong.moe>

* build(Dockerfile): minimize dependencies

for Chromium-bundled version

Signed-off-by: Rongrong <i@rong.moe>
2022-04-28 20:40:21 +08:00
huangliangshusheng
65857026f8 feat(route): add syosetu (#9612)
* feat(route): add syosetu

* fix doc
2022-04-25 11:01:47 +08:00
Ethan Shen
c9e423b8f1 feat(route): add Coomer (#9610)
* feat(route): add Coomer

* fix typo
2022-04-25 08:56:03 +08:00
dependabot[bot]
7be82ccdd0 chore(deps): bump markdown-it from 12.3.2 to 13.0.0 (#9602)
* chore(deps): bump markdown-it from 12.3.2 to 13.0.0

Bumps [markdown-it](https://github.com/markdown-it/markdown-it) from 12.3.2 to 13.0.0.
- [Release notes](https://github.com/markdown-it/markdown-it/releases)
- [Changelog](https://github.com/markdown-it/markdown-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/markdown-it/markdown-it/compare/12.3.2...13.0.0)

---
updated-dependencies:
- dependency-name: markdown-it
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* docs: fix repo issues example

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-25 00:57:47 +08:00
Howard Yin
67d87e2eea feat(route): E站增加封面图嵌入RSS和封面图替换为代理网址的功能 (#9344)
* 增加封面图嵌入RSS的功能

* 增加EH封面图代理的功能

* 改用URLSearchParams代替querystring
增加对"Minimal", "Minimal+" and "Extended"页面模式的支持

* fix: matching logic

* refactor: migrate to v2

* docs: add missing description of EH_IMG_PROXY

* docs: remove ignoring EH_SK

Co-authored-by: TonyRL <TonyRL@users.noreply.github.com>
2022-04-21 23:03:55 +08:00
Fatpandac
0664feadb1 fix(docs): steam/search change example in docs (#9583) 2022-04-20 15:14:43 +06: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
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
Devesh Pal
08c1a032aa docs: fix typo in english docs (#9549) 2022-04-16 12:49:59 +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
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
Tony
fb2a407b02 feat(route): qbittorrent news (#9524) 2022-04-11 23:17:09 +01: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
DIYgod
8ec1046343 docs: add sponsor 2022-04-08 08:10:11 +01: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
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
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
Fatpandac
bb3924cac3 feat(route): npm (#9437) 2022-04-01 18:39:08 +08:00
huangliangshusheng
c6fbc9ecf2 feat(route): add hameln (#9429)
* feat(route): add hameln

* feat(route): add hameln

* fix doc

* Update lib/v2/hameln/chapter.js

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

* add timezone

Co-authored-by: Tony <TonyRL@users.noreply.github.com>
2022-04-01 11:24:31 +08:00
Rongrong
763b978c1c docs: fix badges in README (#9405)
Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com>
2022-03-29 21:43:59 +08:00
Ethan Shen
5927f28121 fix(route): PubMed Trending articles (#9402) 2022-03-28 20:20:30 +08:00
Tony
e5b2676534 docs: fix blank page (#9396) 2022-03-27 19:46:36 +08:00
忧郁的紫色毛衣男孩
e61a90db77 fix(route): geo daily photo (#7555)
* 完成issues#7485,在每日一图-国家地理中增加每日精选节点

* 修改文档和router位置

* 对日期pubDate规范进行了调整

* 优化调整获取内容逻辑,修改pubDate字段的获取方式

* 调整pubDate参数

* 删除代码中多余的console

* 调整parse-date引用

* 调整时区

* issues-#7471,解决国家地理每日一图获取失败问题,因为网站更改,并且网站对图片进行了处理,所以调整获取方式。

* 删除无用代码

* 调整代码,错删了代码

* refactor: migrate to v2

* fix: nat geo photo of the day

* fix: natgeo parseDate

* style: lint

* feat: radar for natgeomedia.com

Co-authored-by: TonyRL <TonyRL@users.noreply.github.com>
2022-03-27 00:09:34 +08:00
Ethan Shen
d5648b37ee fix(utils): parse relative dates with multiple time units (#9365)
* fix(utils): parse relative dates with multiple time units

* docs: remove warning

* fix: add more characters to match

* fix: rename to parse-date
2022-03-26 16:45:42 +08:00
Humble
c91a4cdd1d feat(route):add 政采云前端小报和博客 (#9379)
* feat(route):add 政采云前端小报和博客

* fix:因为使用了空值合并操作符??,所有node的版本必须大于等于14

* feat(route):add 政采云前端小报和博客

* fix:因为使用了空值合并操作符??,所有node的版本必须大于等于14

* docs:新增英文说明

* docs:调整位置

* feat: Modify Backquotes

* fix:remove duplicate rssbud and add zooTeam

* fix: add a close tag

* docs: fix docs tags and attrs

* fix:add timezone
2022-03-25 20:47:06 +08:00
huangliangshusheng
d1cda2a2be feat(route): add kakuyomu (#9371)
* feat(route): add kakuyomu

* feat(route): add kakuyomu

* add pubDate

* fix radar rule
2022-03-25 20:23:57 +08:00
Kevin Schaul
95789aafaa feat(rotue): add nytimes/author route (#9356)
* Add nytimes/author route

* Removed unnecessary logger and fs usage

* refactor: migrate to v2
2022-03-22 22:52:49 +08:00
Rongrong
c48ca6bd5b fix(core): invalid feed fields (#9286)
Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com>
2022-03-22 02:13:15 +08:00
Tony
fe775f5198 fix(route): github comments use api (#9358)
fix(route): github comments use api
2022-03-21 17:17:59 +00:00
Tony
96d392fec9 fix(route): github pull requests (#9341)
* fix(route): github pull

* fix: typo
2022-03-19 03:14:53 +08:00
Rongrong
41910802f2 feat(core): caching enhancements (#9227)
* fix(core): redis cache ignore `maxAge` when refreshing

memory cache do not have such a problem

Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com>

* feat(core): make `cache.tryGet()` refreshing selectable

Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com>

* docs: `ctx.cache.tryGet()` update

Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com>
2022-03-19 02:13:15 +08:00
Tony
2ed9fd5c5f chore: bump lru-cache from 6.0.0 to 7.7.1 (#9339)
* feat(core): lru-cache v7

* chore: bump lru-cache to 7.7.1

* feat: configurable max
2022-03-18 21:08:04 +08:00
Tony
ba198d09c4 fix(route): rfa missing url property (#9326)
* fix(route): rfa missing url property

* docs: add missing en h3 title

* fix: use nullish coalescing operator
2022-03-16 05:14:49 +08:00
github-actions[bot]
06f3964aaf style: auto format 2022-03-14 13:00:01 +00:00