Commit Graph

680 Commits

Author SHA1 Message Date
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
Zhen Zhong 3baeb0aa8c
feat(route): add bitbucket commits and tags (#9316)
* add bitbucket commits and tags

* add english doc

* fix bitbucket radar.js

* fix bitbucket docs

* docs: add bitbucket cn docs

* fix: use parseDate utils
2022-03-14 20:57:54 +08:00
Tony bf9be2fa3d
feat(route): add gitpod (#9306)
feat(route): gitpod
2022-03-12 04:52:04 +08:00
Tony 233f1c8152
refactor: config.js (#9305)
* refactor: reorder lib/config.js

* docs: reorder config
2022-03-11 22:12:42 +08:00
Ethan Shen 3965da8765
feat(route): add Sputnik News (#9294) 2022-03-11 00:17:13 +08:00
Rongrong 3364b7eb1d
fix(route): migrate invalid `enclosure_length` usages to `itunes_duration` (#9291)
Close #9287

Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com>
2022-03-10 20:54:29 +08:00
Ethan Shen 0a53418b93
feat: add google sites recent changes (#7246)
* feat: add google sites recent changes

* fix pubDate

* fix: wrong date format
2022-03-10 19:46:56 +08:00
Ethan Shen b808cdb78f
feat(route): add 35PHOTO (#9267) 2022-03-08 21:55:40 +08:00
LyleLee ba9891f578
feat(route): 美国白宫科学技术政策办公室 US Whitehouse Office Of Science And… (#9246)
* Add whitehouse/ostp 美国白宫科学技术政策办公室 US Whitehouse Office Of Science And Technology Policy

* Add whitehouse OSTP, update english docs
2022-03-06 20:11:34 +08:00
elxy c30a4d56fc
feat(route): add Bitmovin blogs (#8935)
* Add(route): add Bitmovin blogs

* refactor: migrate to v2

Co-authored-by: TonyRL <TonyRL@users.noreply.github.com>
2022-03-06 01:21:58 +08:00
elxy 0ac081aad0
feat(route): add BBC News Labs (#8934)
* Add(route): add BBC News Labs

* refactor: migrate to v2

Co-authored-by: TonyRL <TonyRL@users.noreply.github.com>
2022-03-06 00:22:59 +08:00
Holegots 99b50faa40
feat(route): add tokeninsight (#8725)
* feat: add tokeninsight's bulletin

* feat: add tokeninsight's report and blog

* 🔧 Add Limit for tokeninsight

* refactor: migrate to v2

* fix: maintainer path

Co-authored-by: TonyRL <TonyRL@users.noreply.github.com>
2022-03-03 22:16:14 +08:00
Rongrong 44f1ea3718
feat(route)(picuki/profile): migrate to v2, fetch stories (#9216)
* refactor(route)(picuki/profile): migrate to v2

other changes:
fix linebreak
fix header
add location
`displayVideo` param defaults to enable

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

* refactor(route)(picuki/profile): use template

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

* feat(route)(picuki/profile): fetch stories

Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com>
2022-03-02 22:26:21 +08:00
Rongrong 2ef844425b
feat(route)(telegram/channel): major rewrite (#9213)
feed title changed to English
route path changed
exclude 'no posts found' messages (always)

custom route params:
exclude forwarded/reply/service messages (selectable)
exclude unsupported messages (selectable, default)
remove link preview (selectable)
remove metadata (via bot / forwarded from / reply to) (selectable)
add forwarded message author (selectable, default)
add inline buttons (selectable)
remove media tags in title (selectable)
non-emoji media tags (selectable)
search query (selectable, retain backward compatibility)

message types newly supported / enhanced:
reply (previous not in media tags, lacks of via bot)
forwarded (previously not in media tags, lacks of via bot)
service (previous not in media tags, img not extracted)
via bot (previous unrecognized, treated as normal messages)
video (previous use another emoji as media tag)
GIF (previous unrecognized, treated as video)
poll (previous only poll title)
voice (previous use another emoji as media tag, no title/content)
music (previous unrecognized, treated as document)
document (previous no content, broken if multiple exist)
location (previous only media tag)
contact (previous totally unsupported)
sticker (previous only media tag)
animated sticker (previous totally unsupported)
unsupported (previous totally unsupported)

misc:
fix emoji in posts: weird format (Italic and Bold)
fix title: lacks of spaces
fix title: use pubDate even if media tags exist
fix broken documents message if multiple documents exist
fix mistaken exception description
fix media sequence: video always at last, #4777
fix: autofilled title (pubDate) not in UTC
use cache
minor refactor

Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com>
2022-03-02 19:25:03 +08:00
Rick Lee f1e7c90c3e
feat: 为豆瓣想看增加Cookie配置项 (#9110) 2022-02-24 23:50:12 +08:00
Hivol 8537de593a
feat(route): add NL Times (#8127)
* feat(route): add NL Times

* refactor: migrate to v2

* fix: tryGet cache

Co-authored-by: TonyRL <TonyRL@users.noreply.github.com>
2022-02-24 01:37:09 +08:00
Ethan Shen 7445cee887
feat(route): add KBS news (#8121)
* feat(route): add KBS news

* fix docs

* refactor: migrate to v2

Co-authored-by: TonyRL <TonyRL@users.noreply.github.com>
2022-02-24 00:45:00 +08:00
Ethan Shen 4f0c1cfdb2
fix: add Lofter用户文章分类 & 视频 (#8061)
* fix: add Lofter用户文章分类 & 视频

* add limit

* fix limit

* refactor: migrate to v2

* fix: route path

Co-authored-by: TonyRL <TonyRL@users.noreply.github.com>
2022-02-24 00:23:10 +08:00
Ethan Shen 171ee3b006
fix(route): World Health Organization Newsroom (#8012)
* fix(route): World Health Organization Newsroom

* refactor: migrate to v2

Co-authored-by: TonyRL <TonyRL@users.noreply.github.com>
2022-02-23 21:55:13 +08:00
MisteryMonster 0c7aaf8a5a
feat(route): add vimeo with more (#7604)
* add vimeo with more

* refactor: migrate to v2

Co-authored-by: TonyRL <TonyRL@users.noreply.github.com>
2022-02-22 03:07:02 +08:00
Fatpandac 96d7059b7b
feat(route): add Oxford Academic - Oxford University Press (#9164)
* feat(route): add Oxford Academic - Oxford University Press

* Update lib/v2/oup/index.js

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

* Update docs/en/journal.md

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

* Update docs/journal.md

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

Co-authored-by: Tony <TonyRL@users.noreply.github.com>
2022-02-21 23:35:06 +08:00