yuxinliu-alex and Alex Liu
fccb91838d
fix(route): 央视新闻-专题 支持获取Author字段 ( #9568 )
...
* fix(route): 央视新闻-专题 支持获取Author字段
* refactor: migrate to v2
* fix: date parsing in /cctv/photo/jx
* fix: special date parsing
fix: xwlb not working
fix: mzzlbg item description
fix: news use https
fix: xinwen1j1 not working
* feat: add radar
Co-authored-by: Alex Liu <yuxinliu.alex@gmail.com >
2022-04-20 20:11:58 +08:00
Fatpandac
864016c598
fix(route): dongqiudi/top_news cannot convert undefined or null to ob… ( #9558 )
...
* fix(route): dongqiudi/top_news cannot convert undefined or null to object
* refactor: migrate to v2
* refactor: daily parseDate cache.tryGet
* fix: legacy url.parse, cache article
* refactor: result use parseDate
* refactor: `cache.get` to `cache.tryGet`
* fix: add radar
* fix: Incomplete URL substring sanitization
2022-04-19 01:19:10 +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
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
Levi Zim and Tony
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
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
Fatpandac
56ccda8f72
fix(route): add the title to the first article and refactor to V2 ( #9532 )
2022-04-13 18:09:17 +08: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
Fatpandac
d63ece212f
fix(route): yystv change selector path, add radar and refactor to V2 ( #9529 )
...
* fix(route): change selector path, add radar and refactor to V2
* fix: use parse-date utils
* fix: use https
2022-04-13 17:23:23 +08:00
Ethan Shen and Tony
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
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
Jigsaw
69210f7cad
fix(route)(twreporter): title,author,pubDate ( #9502 )
...
* fix(route): twreporter title,author,pubDate
* refactor: migrate to v2
* fix: missing maintainer
2022-04-09 19:06:03 +08:00
Rongrong
2dab2ad5bc
fix(route)(wechat/ce): anti-crawler and pubDate ( #9495 )
...
Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com >
2022-04-09 00:00:02 +08:00
NathanDai and Tony
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
Rongrong
eb9026e470
fix(route)(wechat/ershicimi): outdated URL ( #9494 )
...
* fix(route)(wechat/ershicimi): outdated URL
Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com >
* fix: pubDate
2022-04-08 18:08:48 +08:00
Tony
f97cdb291c
fix: lack of config error url ( #9490 )
2022-04-07 22:34:33 +08: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
Rongrong
e0b7ca676d
fix(route)(twitter)(web API): retweet un-extracted ( #9488 )
...
Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com >
2022-04-07 20:38:54 +08:00
Rongrong
e9a51c0d35
fix(route)(weibo/timeline): improper caching usage ( #9474 )
...
Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com >
2022-04-05 20:26:02 -07:00
Rongrong
ee8ad5b7fa
feat(route)(twitter): API fallback ( #9475 )
...
Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com >
2022-04-06 05:11:09 +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
d887fd755a
fix(route)(weibo): icon replacement regex ( #9470 )
...
Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com >
2022-04-04 23:54:30 -07:00
Tony
f11b5758d7
fix(route): gamer gnn news ( #9465 )
2022-04-05 02:02:49 +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
Rongrong
63b3b044cd
fix(route)(weibo/user): outdated API method ( #9446 )
...
Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com >
2022-04-02 17:20:19 +08: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
Ethan Shen
d68e5a8d54
feat(route): add Quicker动作更新 ( #9357 )
...
* feat(route): add Quicker动作更新
* fix typo
* delete outdated routes
* fix: add h2 header
* fix: invalid pubDate
2022-03-31 22:32:30 +08:00
Ethan Shen
d50e0948dc
feat(route): add 虎扑首页 ( #9416 )
2022-03-29 22:03:13 +08:00
Rongrong
cd91931876
feat(route): try to avoid being anti-crawled ( #9406 )
...
* feat(route)(weibo): try to avoid being anti-crawled
Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com >
* refactor(route)(telegram/channel): migrate to `cache.tryGet`
Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com >
* feat(route)(douban): try to avoid being anti-crawled
Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com >
* feat(route)(picuki): try to avoid being anti-crawled
Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com >
* ref: got.get() to got()
2022-03-29 20:58:46 +08:00
Rongrong
501dff59d0
refactor(core): unified memory cache ( #9395 )
...
Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com >
2022-03-28 22:55:29 +08:00
Genghis Yang
33eb860b08
fix(route): mpaypass news ( #9367 )
...
* fix(route): mpaypass news
* refactor: migrate to v2
* fix: parseDate
2022-03-28 20:41:20 +08:00
Ethan Shen
5927f28121
fix(route): PubMed Trending articles ( #9402 )
2022-03-28 20:20:30 +08:00
Rongrong
8c2039902e
feat(route)(weibo): display comments ( #9394 )
...
Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com >
2022-03-27 01:51:42 +08:00
忧郁的紫色毛衣男孩 and TonyRL
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
8ecad32db2
feat(route): add 澎湃明查 ( #9380 )
...
* feat(route): add 澎湃明查
* fix: 839studio routes
* docs: update example url
* fix: parseDate
2022-03-25 22:05:27 +08:00
Qin Ruizhe
f3618bb148
feat(route): fix NUAA 教务处/计算机科学与技术学院信息 ( #9361 )
...
* feat(route): fix NUAA 教务处/计算机科学与技术学院信息
* refactor: migrate to v2
* fix: deprecated url.resolve
2022-03-25 03:21:32 +08:00
Fatpandac
259bcf1e5c
fix(route): ifeng/feng this route is empty ( #9372 )
...
* ifeng/feng this route is empty
* refactor: migrate to v2
* fix: parseDate
2022-03-24 01:47:29 +08:00
Tony
6ba0cb246e
fix(route): dbmv category not working ( #9366 )
2022-03-23 22:34:35 +08:00
Tony
c7cb516321
fix(route): headers in got usage ( #9363 )
2022-03-22 23:19:20 +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
Ethan Shen
d84ab79163
feat(route): add 中华人民共和国外交部外交动态 ( #9348 )
...
* feat(route): add 中华人民共和国外交部外交动态
* fix: wrong pubDate
2022-03-22 04:20:12 +08:00
dependabot[bot] and TonyRL
db78d3d275
chore(deps): bump tiny-async-pool from 1.2.0 to 2.0.1 ( #9350 )
...
* chore(deps): bump tiny-async-pool from 1.2.0 to 2.0.1
Bumps [tiny-async-pool](https://github.com/rxaviers/async-pool ) from 1.2.0 to 2.0.1.
- [Release notes](https://github.com/rxaviers/async-pool/releases )
- [Commits](https://github.com/rxaviers/async-pool/compare/v1.2.0...v2.0.1 )
---
updated-dependencies:
- dependency-name: tiny-async-pool
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
* fix(route): tiny-async-pool v2 compatibility, url.resolve
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: TonyRL <TonyRL@users.noreply.github.com >
2022-03-20 22:40:32 +08:00
Ethan Shen and Tony
6477e6b8e4
feat(route): 观察者网输出全文 ( #9338 )
...
* feature(route): 观察者网输出全文
* fix: add radar
* fix typo
Co-authored-by: Tony <TonyRL@users.noreply.github.com >
* fix: add timezone
Co-authored-by: Tony <TonyRL@users.noreply.github.com >
2022-03-19 21:01:03 +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
Fatpandac
0ec2b01ec2
feat(route): add 政策研究, 工作论文 and refactor to V2 ( #9324 )
...
* feat(route): add 政策研究, 工作论文 and refactor to V2
* fix: depreciated url.resolve pubDate
2022-03-16 04:13:45 +08:00
Fatpandac
194a522fc8
fix(route): ixigua_user anti-crawler policy upgrade and refactor to V2 ( #9314 )
...
* fix(route): ixigua_user anti-crawler policy upgrade and refactor to V2
* fix(route): replaces '/' with itself and fix item's link
2022-03-15 03:08:14 +08:00
Fatpandac
ea0022cbcf
feat(route): add 差评快讯 and refactor to V2 ( #9319 )
...
* feat(route): add 差评快讯 and refactor to V2
* fix: parseDate
2022-03-15 02:30:06 +08:00
heunghingwan
9dc20280e8
fix(route): gov/fmprc/fyrbt 修复发布日期提取 ( #9317 )
...
* 修复发布日期提取
* fix: depreciated url.resolve Invalid Date
2022-03-14 21:08:20 +08:00
Shao ye and TonyRL
ee1eab23d8
fix njupt posts with url redirections ( #8961 )
...
* fix njupt posts with url redirections
skip posts that are redirected to error pages due to access control
* fix: migrate to v2
* fix: pubDate depreciated url.resolve
Co-authored-by: TonyRL <TonyRL@users.noreply.github.com >
2022-03-13 22:24:06 +08:00