rsshub 1.0.0-master.bc2fd88 → 1.0.0-master.bc3b3e2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -11
- package/lib/app.tsx +7 -6
- package/lib/config.ts +55 -9
- package/lib/errors/index.test.ts +23 -7
- package/lib/errors/index.tsx +31 -36
- package/lib/errors/types/config-not-found.ts +5 -0
- package/lib/errors/types/invalid-parameter.ts +5 -0
- package/lib/errors/types/not-found.ts +5 -0
- package/lib/errors/types/reject.ts +5 -0
- package/lib/errors/types/request-in-progress.ts +5 -0
- package/lib/middleware/access-control.ts +1 -1
- package/lib/middleware/cache.ts +1 -1
- package/lib/middleware/parameter.test.ts +1 -1
- package/lib/middleware/template.tsx +17 -12
- package/lib/registry.ts +1 -1
- package/lib/router.js +1 -10
- package/lib/routes/005/index.ts +1 -1
- package/lib/routes/0x80/index.ts +87 -0
- package/lib/routes/0x80/namespace.ts +7 -0
- package/lib/routes/12306/index.ts +3 -2
- package/lib/routes/12371/namespace.ts +7 -0
- package/lib/routes/12371/zxfb.ts +64 -0
- package/lib/routes/141jav/index.ts +1 -1
- package/lib/routes/141ppv/index.ts +1 -1
- package/lib/routes/163/ds.ts +1 -1
- package/lib/routes/163/dy.ts +1 -2
- package/lib/routes/163/dy2.ts +3 -8
- package/lib/routes/163/exclusive.ts +1 -1
- package/lib/routes/163/music/artist-songs.ts +1 -1
- package/lib/routes/163/music/artist.ts +1 -1
- package/lib/routes/163/music/djradio.ts +1 -1
- package/lib/routes/163/music/playlist.ts +9 -10
- package/lib/routes/163/music/userevents.ts +1 -1
- package/lib/routes/163/music/userplaylist.ts +1 -1
- package/lib/routes/163/music/userplayrecords.ts +8 -2
- package/lib/routes/163/news/rank.ts +3 -2
- package/lib/routes/163/news/special.ts +2 -1
- package/lib/routes/163/open/vip.ts +1 -1
- package/lib/routes/163/utils.ts +3 -5
- package/lib/routes/18comic/utils.ts +3 -2
- package/lib/routes/19lou/index.ts +2 -1
- package/lib/routes/1point3acres/offer.ts +1 -1
- package/lib/routes/1point3acres/utils.ts +1 -1
- package/lib/routes/1x/index.ts +1 -1
- package/lib/routes/2048/index.ts +1 -1
- package/lib/routes/3kns/index.ts +1 -1
- package/lib/routes/423down/index.ts +258 -101
- package/lib/routes/423down/namespace.ts +3 -1
- package/lib/routes/423down/templates/description.art +21 -0
- package/lib/routes/4gamers/utils.ts +3 -2
- package/lib/routes/4ksj/forum.ts +1 -1
- package/lib/routes/500px/tribe-set.ts +3 -12
- package/lib/routes/500px/utils.ts +23 -22
- package/lib/routes/{thecatcity → 51cto}/namespace.ts +2 -2
- package/lib/routes/51cto/recommend.ts +52 -0
- package/lib/routes/51cto/utils.ts +21 -0
- package/lib/routes/56kog/util.ts +1 -1
- package/lib/routes/591/list.ts +7 -6
- package/lib/routes/69shu/article.ts +96 -0
- package/lib/routes/{arknights → 69shu}/namespace.ts +2 -2
- package/lib/routes/6v123/latest-movies.ts +1 -1
- package/lib/routes/6v123/latest-tvseries.ts +1 -1
- package/lib/routes/6v123/utils.ts +64 -62
- package/lib/routes/78dm/index.ts +1 -1
- package/lib/routes/7mmtv/index.ts +1 -1
- package/lib/routes/81/81rc/index.ts +68 -32
- package/lib/routes/81/namespace.ts +3 -1
- package/lib/routes/8264/list.ts +1 -1
- package/lib/routes/91porn/author.ts +1 -1
- package/lib/routes/91porn/index.ts +1 -1
- package/lib/routes/91porn/utils.ts +2 -1
- package/lib/routes/95mm/utils.ts +2 -2
- package/lib/routes/abc/index.ts +2 -2
- package/lib/routes/accessbriefing/index.ts +217 -0
- package/lib/routes/accessbriefing/namespace.ts +8 -0
- package/lib/routes/accessbriefing/templates/description.art +27 -0
- package/lib/routes/acfun/article.ts +4 -3
- package/lib/routes/acs/journal.ts +1 -1
- package/lib/routes/aeaweb/index.ts +1 -1
- package/lib/routes/aeon/utils.ts +1 -1
- package/lib/routes/aicaijing/index.ts +1 -1
- package/lib/routes/aip/journal-pupp.ts +4 -2
- package/lib/routes/aip/utils.ts +1 -1
- package/lib/routes/aisixiang/thinktank.ts +2 -1
- package/lib/routes/alipan/files.ts +80 -0
- package/lib/routes/alipan/namespace.ts +7 -0
- package/lib/routes/alipan/types.ts +62 -0
- package/lib/routes/aljazeera/index.ts +18 -15
- package/lib/routes/amazon/kindle-software-updates.ts +1 -1
- package/lib/routes/anquanke/vul.ts +3 -1
- package/lib/routes/apnews/rss.ts +41 -0
- package/lib/routes/apnews/topics.ts +3 -17
- package/lib/routes/apnews/utils.ts +23 -0
- package/lib/routes/app-center/release.ts +1 -1
- package/lib/routes/apple/apps.ts +5 -5
- package/lib/routes/apple/podcast.ts +64 -0
- package/lib/routes/appstorrent/programs.ts +1 -1
- package/lib/routes/aqara/post.ts +1 -1
- package/lib/routes/aqicn/aqi.ts +82 -0
- package/lib/routes/aqicn/namespace.ts +6 -0
- package/lib/routes/arcteryx/new-arrivals.ts +1 -1
- package/lib/routes/arcteryx/outlet.ts +1 -1
- package/lib/routes/arcteryx/regear-new-arrivals.ts +1 -1
- package/lib/routes/artstation/user.ts +1 -1
- package/lib/routes/asiantolick/index.ts +1 -1
- package/lib/routes/asus/bios.ts +1 -1
- package/lib/routes/atptour/namespace.ts +7 -0
- package/lib/routes/atptour/news.ts +52 -0
- package/lib/routes/baai/events.ts +10 -21
- package/lib/routes/baai/hub.ts +59 -29
- package/lib/routes/baai/utils.ts +19 -4
- package/lib/routes/baidu/gushitong/index.ts +1 -1
- package/lib/routes/baidu/search.ts +1 -1
- package/lib/routes/baidu/tieba/forum.ts +1 -1
- package/lib/routes/baidu/tieba/post.ts +1 -1
- package/lib/routes/baidu/tieba/search.ts +3 -3
- package/lib/routes/baidu/top.ts +1 -1
- package/lib/routes/bandcamp/weekly.ts +1 -1
- package/lib/routes/bangumi/online/online.ts +1 -1
- package/lib/routes/bangumi/tv/calendar/_base.ts +2 -1
- package/lib/routes/bangumi/tv/calendar/today.ts +1 -1
- package/lib/routes/bangumi/tv/other/followrank.ts +29 -16
- package/lib/routes/bangumi/tv/subject/comments.ts +2 -1
- package/lib/routes/bangumi/tv/subject/ep.ts +3 -2
- package/lib/routes/bangumi/tv/subject/index.ts +2 -1
- package/lib/routes/bangumi/tv/subject/offcial-subject-api.ts +2 -1
- package/lib/routes/baozimh/index.ts +4 -2
- package/lib/routes/bbc/index.ts +24 -14
- package/lib/routes/bdys/index.ts +3 -2
- package/lib/routes/bendibao/news.ts +2 -1
- package/lib/routes/bgmlist/onair.ts +1 -1
- package/lib/routes/bilibili/api-interface.d.ts +8 -0
- package/lib/routes/bilibili/cache.ts +1 -1
- package/lib/routes/bilibili/dynamic.ts +60 -56
- package/lib/routes/bilibili/followers.ts +3 -2
- package/lib/routes/bilibili/followings-article.ts +3 -2
- package/lib/routes/bilibili/followings-dynamic.ts +6 -3
- package/lib/routes/bilibili/followings-video.ts +3 -2
- package/lib/routes/bilibili/followings.ts +5 -3
- package/lib/routes/bilibili/manga-followings.ts +3 -2
- package/lib/routes/bilibili/ranking.ts +1 -1
- package/lib/routes/bilibili/video.ts +1 -1
- package/lib/routes/bilibili/vsearch.ts +27 -30
- package/lib/routes/bilibili/watchlater.ts +3 -2
- package/lib/routes/binance/launchpool.ts +46 -0
- package/lib/routes/binance/namespace.ts +6 -0
- package/lib/routes/bing/daily-wallpaper.ts +9 -8
- package/lib/routes/biquge/index.ts +2 -1
- package/lib/routes/bjtu/gs.ts +224 -0
- package/lib/routes/bjtu/namespace.ts +8 -0
- package/lib/routes/bloomberg/index.ts +32 -3
- package/lib/routes/bloomberg/utils.ts +34 -20
- package/lib/routes/bnu/mba.ts +202 -0
- package/lib/routes/booru/mmda.ts +1 -1
- package/lib/routes/bsky/posts.ts +7 -7
- package/lib/routes/btzj/index.ts +3 -2
- package/lib/routes/buaa/sme.ts +33 -2
- package/lib/routes/byau/namespace.ts +6 -0
- package/lib/routes/byau/xinwen/index.ts +72 -0
- package/lib/routes/caai/utils.ts +1 -1
- package/lib/routes/caareviews/utils.ts +1 -1
- package/lib/routes/cahkms/index.ts +1 -1
- package/lib/routes/caixin/blog.ts +4 -3
- package/lib/routes/caixin/category.ts +2 -1
- package/lib/routes/caixin/database.ts +1 -1
- package/lib/routes/caixin/latest.ts +3 -3
- package/lib/routes/caixin/templates/article.art +1 -1
- package/lib/routes/caixin/utils.ts +1 -1
- package/lib/routes/caixin/weekly.ts +5 -14
- package/lib/routes/cankaoxiaoxi/index.ts +1 -1
- package/lib/routes/cartoonmad/comic.ts +1 -1
- package/lib/routes/cbaigui/index.ts +1 -1
- package/lib/routes/ccf/ccfcv/index.ts +1 -1
- package/lib/routes/ccf/tfbd/utils.ts +1 -1
- package/lib/routes/cctv/utils/mzzlbg.ts +2 -1
- package/lib/routes/cctv/utils/news.ts +3 -2
- package/lib/routes/cctv/utils/xinwen1j1.ts +2 -1
- package/lib/routes/cde/xxgk.ts +1 -1
- package/lib/routes/cdzjryb/project-list.ts +1 -1
- package/lib/routes/cebbank/all.ts +4 -5
- package/lib/routes/cebbank/history.ts +5 -8
- package/lib/routes/cfr/index.ts +58 -0
- package/lib/routes/cfr/namespace.ts +6 -0
- package/lib/routes/cfr/types.ts +30 -0
- package/lib/routes/cfr/utils.ts +284 -0
- package/lib/routes/chaincatcher/home.ts +1 -1
- package/lib/routes/changba/user.ts +1 -1
- package/lib/routes/chaoxing/qk.ts +1 -1
- package/lib/routes/chinadegrees/province.ts +1 -1
- package/lib/routes/chinaisa/index.ts +18 -8
- package/lib/routes/chuanliu/nice.ts +1 -1
- package/lib/routes/chub/characters.ts +64 -0
- package/lib/routes/chub/namespace.ts +6 -0
- package/lib/routes/cls/depth.ts +3 -2
- package/lib/routes/cls/hot.ts +1 -1
- package/lib/routes/cls/telegraph.ts +1 -1
- package/lib/routes/cma/channel.ts +1 -1
- package/lib/routes/cnbeta/category.ts +23 -0
- package/lib/routes/cnbeta/{type.ts → common.ts} +1 -17
- package/lib/routes/cnbeta/index.ts +16 -0
- package/lib/routes/cnbeta/namespace.ts +1 -0
- package/lib/routes/cnbeta/topics.ts +23 -0
- package/lib/routes/cnblogs/common.ts +0 -2
- package/lib/routes/cngal/entry.ts +2 -2
- package/lib/routes/cngal/weekly.ts +1 -1
- package/lib/routes/cnjxol/index.ts +3 -2
- package/lib/routes/cnki/author.ts +2 -2
- package/lib/routes/cnki/debut.ts +1 -1
- package/lib/routes/cnki/utils.ts +2 -2
- package/lib/routes/cntheory/paper.ts +1 -1
- package/lib/routes/cntv/column.ts +1 -1
- package/lib/routes/codeforces/contests.ts +1 -1
- package/lib/routes/colamanga/manga.ts +88 -0
- package/lib/routes/colamanga/namespace.ts +9 -0
- package/lib/routes/comicskingdom/index.ts +3 -2
- package/lib/routes/coolapk/dyh.ts +2 -1
- package/lib/routes/coolapk/huati.ts +2 -1
- package/lib/routes/coolapk/user-dynamic.ts +3 -2
- package/lib/routes/coomer/utils.ts +2 -1
- package/lib/routes/copernicium/index.ts +67 -0
- package/lib/routes/copernicium/namespace.ts +6 -0
- package/lib/routes/copymanga/comic.ts +1 -1
- package/lib/routes/cpcaauto/index.ts +255 -0
- package/lib/routes/cpcaauto/namespace.ts +8 -0
- package/lib/routes/creative-comic/book.ts +3 -3
- package/lib/routes/creative-comic/utils.ts +1 -1
- package/lib/routes/crossbell/feeds/following.ts +20 -18
- package/lib/routes/crossbell/notes/utils.ts +15 -17
- package/lib/routes/cuilingmag/index.ts +211 -0
- package/lib/routes/cuilingmag/namespace.ts +8 -0
- package/lib/routes/cuilingmag/templates/description.art +17 -0
- package/lib/routes/curius/links.ts +1 -1
- package/lib/routes/cztv/daily.ts +1 -1
- package/lib/routes/cztv/zjxwlb.ts +1 -1
- package/lib/routes/dahecube/index.ts +3 -7
- package/lib/routes/daily/discussed.ts +0 -11
- package/lib/routes/daily/index.ts +2 -2
- package/lib/routes/daily/namespace.ts +1 -0
- package/lib/routes/daily/templates/posts.art +7 -0
- package/lib/routes/daily/upvoted.ts +5 -16
- package/lib/routes/daily/user.ts +227 -0
- package/lib/routes/daily/utils.ts +33 -16
- package/lib/routes/damai/activity.ts +1 -1
- package/lib/routes/darwinawards/index.ts +3 -4
- package/lib/routes/darwinawards/namespace.ts +1 -0
- package/lib/routes/dcfever/news.ts +14 -19
- package/lib/routes/dcfever/reviews.ts +7 -15
- package/lib/routes/dcfever/trading-search.ts +11 -22
- package/lib/routes/dcfever/trading.ts +10 -21
- package/lib/routes/dcfever/utils.ts +11 -10
- package/lib/routes/deadline/posts.ts +1 -1
- package/lib/routes/dedao/knowledge.ts +1 -1
- package/lib/routes/dedao/list.ts +1 -1
- package/lib/routes/dedao/user.ts +1 -1
- package/lib/routes/deepin/homepage.ts +43 -0
- package/lib/routes/deepin/namespace.ts +9 -0
- package/lib/routes/dehenglaw/index.ts +128 -0
- package/lib/routes/dehenglaw/namespace.ts +8 -0
- package/lib/routes/dehenglaw/templates/description.art +7 -0
- package/lib/routes/diershoubing/news.ts +1 -1
- package/lib/routes/digitalcameraworld/namespace.ts +6 -0
- package/lib/routes/digitalcameraworld/news.ts +61 -0
- package/lib/routes/discord/channel.ts +3 -2
- package/lib/routes/discourse/notifications.ts +4 -4
- package/lib/routes/discourse/utils.ts +2 -1
- package/lib/routes/discuz/discuz.ts +4 -2
- package/lib/routes/dlnews/category.ts +1 -1
- package/lib/routes/dlsite/campaign.ts +2 -1
- package/lib/routes/dlsite/new.ts +2 -1
- package/lib/routes/dlsite/utils.ts +2 -2
- package/lib/routes/dn/news.ts +1 -1
- package/lib/routes/dnaindia/category.ts +0 -105
- package/lib/routes/dnaindia/common.ts +68 -0
- package/lib/routes/dnaindia/namespace.ts +1 -0
- package/lib/routes/dnaindia/news.ts +24 -0
- package/lib/routes/dnaindia/topic.ts +28 -0
- package/lib/routes/dockerhub/build.ts +1 -1
- package/lib/routes/domp4/detail.ts +2 -2
- package/lib/routes/domp4/latest-movie-bt.ts +71 -0
- package/lib/routes/domp4/utils.ts +4 -3
- package/lib/routes/dora-world/article.ts +87 -0
- package/lib/routes/dora-world/namespace.ts +6 -0
- package/lib/routes/douban/other/explore.ts +1 -1
- package/lib/routes/douban/other/group.ts +1 -1
- package/lib/routes/douban/other/list.ts +1 -1
- package/lib/routes/douban/other/recommended.ts +1 -1
- package/lib/routes/douban/other/weekly-best.ts +1 -1
- package/lib/routes/douyin/hashtag.ts +2 -1
- package/lib/routes/douyin/live.ts +3 -2
- package/lib/routes/douyin/templates/embed.art +1 -1
- package/lib/routes/douyin/user.ts +2 -1
- package/lib/routes/douyin/utils.ts +1 -1
- package/lib/routes/douyu/group.ts +1 -1
- package/lib/routes/douyu/post.ts +1 -1
- package/lib/routes/douyu/room.ts +58 -18
- package/lib/routes/dribbble/utils.ts +1 -1
- package/lib/routes/duozhuayu/search.ts +1 -1
- package/lib/routes/dushu/fuzhou/index.ts +1 -1
- package/lib/routes/dut/index.ts +2 -1
- package/lib/routes/e-hentai/index.ts +1 -1
- package/lib/routes/eagle/blog.ts +2 -1
- package/lib/routes/ecnu/contest.ts +1 -1
- package/lib/routes/ecnu/jwc.ts +67 -0
- package/lib/routes/ecnu/namespace.ts +1 -1
- package/lib/routes/economist/espresso.ts +1 -1
- package/lib/routes/ehentai/ehapi.ts +1 -1
- package/lib/routes/ehentai/favorites.ts +2 -1
- package/lib/routes/elsevier/issue.ts +1 -1
- package/lib/routes/elsevier/journal.ts +1 -1
- package/lib/routes/epicgames/index.ts +7 -5
- package/lib/routes/eprice/rss.ts +6 -11
- package/lib/routes/esquirehk/namespace.ts +6 -0
- package/lib/routes/esquirehk/tag.ts +104 -0
- package/lib/routes/esquirehk/templates/subpages.art +30 -0
- package/lib/routes/europechinese/latest.ts +66 -0
- package/lib/routes/europechinese/namespace.ts +6 -0
- package/lib/routes/fanbox/index.ts +62 -0
- package/lib/routes/fanbox/namespace.ts +6 -0
- package/lib/routes/fanbox/templates/fanbox-post.art +7 -0
- package/lib/routes/fanbox/types.ts +239 -0
- package/lib/routes/fanbox/utils.ts +188 -0
- package/lib/routes/fanqienovel/namespace.ts +7 -0
- package/lib/routes/fanqienovel/page.ts +100 -0
- package/lib/routes/fansly/templates/media.art +1 -1
- package/lib/routes/fansly/utils.ts +3 -2
- package/lib/routes/fanxinzhui/index.ts +1 -1
- package/lib/routes/farmatters/index.ts +1 -2
- package/lib/routes/farmatters/namespace.ts +1 -0
- package/lib/routes/fastbull/news.ts +1 -1
- package/lib/routes/feng/forum.ts +1 -1
- package/lib/routes/ff14/ff14-global.ts +3 -2
- package/lib/routes/ff14/ff14-zh.ts +1 -1
- package/lib/routes/fffdm/manhua/manhua.ts +1 -1
- package/lib/routes/finology/bullets.ts +0 -9
- package/lib/routes/finology/category.ts +60 -0
- package/lib/routes/finology/most-viewed.ts +4 -12
- package/lib/routes/finology/tag.ts +42 -63
- package/lib/routes/finology/utils.ts +3 -2
- package/lib/routes/finviz/news.ts +2 -1
- package/lib/routes/fisher-spb/news.ts +1 -1
- package/lib/routes/focustaiwan/index.ts +1 -1
- package/lib/routes/followin/utils.ts +1 -1
- package/lib/routes/foresightnews/util.ts +1 -1
- package/lib/routes/fosshub/index.ts +1 -1
- package/lib/routes/freecomputerbooks/index.ts +1 -1
- package/lib/routes/freewechat/profile.ts +1 -1
- package/lib/routes/freexcomic/book.ts +84 -0
- package/lib/routes/freexcomic/namespace.ts +7 -0
- package/lib/routes/ft/namespace.ts +1 -1
- package/lib/routes/{ft → ftchinese}/channel.ts +5 -5
- package/lib/routes/ftchinese/namespace.ts +6 -0
- package/lib/routes/furstar/utils.ts +1 -1
- package/lib/routes/futunn/main.ts +1 -1
- package/lib/routes/gameapps/index.ts +1 -1
- package/lib/routes/gamebase/news.ts +2 -2
- package/lib/routes/gamer/hot.ts +3 -6
- package/lib/routes/gamme/category.ts +2 -1
- package/lib/routes/gamme/tag.ts +2 -1
- package/lib/routes/gcores/category.ts +7 -3
- package/lib/routes/gcores/radio.ts +1 -1
- package/lib/routes/gcores/tag.ts +2 -1
- package/lib/routes/gelonghui/live.ts +1 -1
- package/lib/routes/gettr/user.ts +1 -1
- package/lib/routes/github/comments.ts +29 -30
- package/lib/routes/github/follower.ts +2 -1
- package/lib/routes/github/issue.ts +1 -1
- package/lib/routes/github/notifications.ts +16 -21
- package/lib/routes/github/pulls.ts +5 -5
- package/lib/routes/github/pulse.ts +1 -1
- package/lib/routes/github/star.ts +2 -1
- package/lib/routes/github/trending.ts +3 -2
- package/lib/routes/github/wiki.ts +9 -1
- package/lib/routes/gitpod/blog.ts +4 -9
- package/lib/routes/gofans/index.ts +1 -1
- package/lib/routes/google/fonts.ts +3 -2
- package/lib/routes/google/news.ts +1 -1
- package/lib/routes/google/search.ts +1 -1
- package/lib/routes/gov/ah/kjt.ts +229 -0
- package/lib/routes/gov/ah/namespace.ts +8 -0
- package/lib/routes/gov/caac/cjwt.ts +1 -1
- package/lib/routes/gov/cmse/fxrw.ts +1 -1
- package/lib/routes/gov/csrc/news.ts +1 -1
- package/lib/routes/gov/forestry/gjlckjdjt.ts +1 -1
- package/lib/routes/gov/guangdong/tqyb/sncsyjxh.ts +1 -1
- package/lib/routes/gov/guangdong/tqyb/tfxtq.ts +1 -1
- package/lib/routes/gov/jiangsu/wlt/index.ts +99 -0
- package/lib/routes/gov/jiangsu/wlt/templates/wlt.art +9 -0
- package/lib/routes/gov/mee/ywdt.ts +2 -2
- package/lib/routes/gov/moa/moa.ts +120 -39
- package/lib/routes/gov/{namespace.ts → pbc/namespace.ts} +1 -1
- package/lib/routes/gov/safe/util.ts +1 -1
- package/lib/routes/gov/samr/xgzlyhd.ts +1 -1
- package/lib/routes/gov/shanghai/rsj/ksxm.ts +1 -1
- package/lib/routes/gov/shanghai/wgj/wgj.ts +1 -1
- package/lib/routes/gov/shenzhen/xxgk/zfxxgj.ts +2 -1
- package/lib/routes/gov/shenzhen/zjj/index.ts +2 -1
- package/lib/routes/gov/sichuan/deyang/govpublicinfo.ts +1 -1
- package/lib/routes/gov/sichuan/deyang/mztoday.ts +1 -1
- package/lib/routes/gov/stats/index.ts +26 -23
- package/lib/routes/gov/suzhou/news.ts +2 -1
- package/lib/routes/gov/zj/search.ts +80 -0
- package/lib/routes/gq/namespace.ts +6 -0
- package/lib/routes/gq/news.ts +59 -0
- package/lib/routes/guangdiu/search.ts +1 -1
- package/lib/routes/guduodata/daily.ts +1 -1
- package/lib/routes/gumroad/index.ts +3 -2
- package/lib/routes/guokr/channel.ts +2 -1
- package/lib/routes/gxmzu/ai.ts +1 -1
- package/lib/routes/gxmzu/lib.ts +9 -26
- package/lib/routes/gxmzu/utils/index.ts +31 -13
- package/lib/routes/gxmzu/yjs.ts +1 -1
- package/lib/routes/gzdaily/app.ts +1 -1
- package/lib/routes/hackernews/index.ts +1 -1
- package/lib/routes/hafu/utils.ts +3 -2
- package/lib/routes/harvard/health/blog.ts +1 -1
- package/lib/routes/hashnode/blog.ts +1 -1
- package/lib/routes/hebtv/nong-bo-shi-zai-xing-dong.ts +1 -1
- package/lib/routes/hellogithub/index.ts +3 -3
- package/lib/routes/hellogithub/report.ts +3 -2
- package/lib/routes/hellogithub/volume.ts +40 -25
- package/lib/routes/hitcon/namespace.ts +6 -0
- package/lib/routes/hitcon/templates/zeroday.art +8 -0
- package/lib/routes/hitcon/zeroday.ts +109 -0
- package/lib/routes/hk01/utils.ts +1 -1
- package/lib/routes/hkej/index.ts +4 -7
- package/lib/routes/hket/index.ts +4 -9
- package/lib/routes/hostmonit/cloudflareyes.ts +1 -1
- package/lib/routes/houxu/events.ts +1 -10
- package/lib/routes/houxu/index.ts +5 -7
- package/lib/routes/houxu/memory.ts +1 -10
- package/lib/routes/hoyolab/news.ts +6 -6
- package/lib/routes/hrbust/utils.ts +1 -1
- package/lib/routes/huanqiu/index.ts +8 -6
- package/lib/routes/hubu/index.ts +124 -0
- package/lib/routes/hubu/namespace.ts +8 -0
- package/lib/routes/hubu/zhxy.ts +228 -0
- package/lib/routes/hupu/all.ts +1 -1
- package/lib/routes/hupu/bbs.ts +1 -1
- package/lib/routes/huxiu/util.ts +1 -1
- package/lib/routes/{arknights → hypergryph}/announce.ts +27 -24
- package/lib/routes/hypergryph/japan.ts +78 -0
- package/lib/routes/hypergryph/namespace.ts +7 -0
- package/lib/routes/hypergryph/news.ts +118 -0
- package/lib/routes/ianspriggs/index.ts +1 -1
- package/lib/routes/idaily/index.ts +13 -4
- package/lib/routes/ieee/earlyaccess.ts +1 -1
- package/lib/routes/ieee/journal.ts +1 -1
- package/lib/routes/ieee/recent.ts +1 -1
- package/lib/routes/ieee-security/sp.ts +6 -15
- package/lib/routes/iehou/index.ts +125 -0
- package/lib/routes/iehou/namespace.ts +8 -0
- package/lib/routes/ifeng/news.ts +1 -1
- package/lib/routes/ifeng/templates/video.art +1 -1
- package/lib/routes/ifeng/utils.ts +1 -1
- package/lib/routes/ikea/cn/utils.ts +1 -1
- package/lib/routes/ikea/gb/new.ts +1 -1
- package/lib/routes/ikea/gb/offer.ts +1 -1
- package/lib/routes/imdb/chart.ts +61 -0
- package/lib/routes/imdb/namespace.ts +6 -0
- package/lib/routes/imdb/templates/chart.art +15 -0
- package/lib/routes/imdb/types.ts +103 -0
- package/lib/routes/imiker/jinghua.ts +1 -1
- package/lib/routes/informs/index.ts +1 -1
- package/lib/routes/instagram/common-utils.ts +1 -1
- package/lib/routes/instagram/private-api/index.ts +3 -2
- package/lib/routes/instagram/private-api/utils.ts +2 -1
- package/lib/routes/instagram/templates/video.art +1 -1
- package/lib/routes/instagram/web-api/index.ts +4 -2
- package/lib/routes/instagram/web-api/utils.ts +5 -4
- package/lib/routes/iqilu/program.ts +1 -1
- package/lib/routes/iqiyi/album.ts +3 -2
- package/lib/routes/iresearch/report.ts +1 -1
- package/lib/routes/iresearch/weekly.ts +1 -1
- package/lib/routes/itc/collection.ts +66 -0
- package/lib/routes/itc/namespace.ts +6 -0
- package/lib/routes/itch/devlog.ts +3 -2
- package/lib/routes/itch/index.ts +1 -1
- package/lib/routes/ithome/index.ts +2 -1
- package/lib/routes/ithome/ranking.ts +2 -1
- package/lib/routes/ithome/templates/description.art +13 -0
- package/lib/routes/ithome/zt.ts +118 -56
- package/lib/routes/iwara/subscriptions.ts +3 -2
- package/lib/routes/ixigua/user-video.ts +1 -1
- package/lib/routes/japanpost/track.ts +1 -1
- package/lib/routes/javbus/index.ts +10 -8
- package/lib/routes/javdb/actors.ts +7 -2
- package/lib/routes/javdb/index.ts +0 -1
- package/lib/routes/javdb/makers.ts +7 -1
- package/lib/routes/javdb/rankings.ts +7 -1
- package/lib/routes/javdb/search.ts +7 -1
- package/lib/routes/javdb/series.ts +7 -1
- package/lib/routes/javdb/tags.ts +7 -1
- package/lib/routes/javdb/utils.ts +18 -1
- package/lib/routes/javlibrary/utils.ts +1 -1
- package/lib/routes/jd/price.ts +1 -1
- package/lib/routes/jiemian/lists.ts +1 -1
- package/lib/routes/jike/topic.ts +1 -1
- package/lib/routes/jike/user.ts +1 -1
- package/lib/routes/jin10/index.ts +1 -1
- package/lib/routes/jinse/catalogue.ts +1 -1
- package/lib/routes/jinse/lives.ts +1 -1
- package/lib/routes/jinse/timeline.ts +1 -1
- package/lib/routes/jiuyangongshe/community.ts +147 -0
- package/lib/routes/jiuyangongshe/namespace.ts +7 -0
- package/lib/routes/jiuyangongshe/templates/community-description.art +4 -0
- package/lib/routes/jjwxc/author.ts +1 -1
- package/lib/routes/jjwxc/book.ts +1 -1
- package/lib/routes/jou/utils/index.ts +35 -25
- package/lib/routes/jpxgmn/search.ts +3 -3
- package/lib/routes/jpxgmn/tab.ts +3 -3
- package/lib/routes/jpxgmn/utils.ts +1 -1
- package/lib/routes/jpxgmn/weekly.ts +3 -3
- package/lib/routes/jump/discount.ts +1 -1
- package/lib/routes/kamen-rider-official/news.ts +1 -1
- package/lib/routes/kantarworldpanel/index.ts +1 -1
- package/lib/routes/kanxue/namespace.ts +6 -0
- package/lib/routes/kanxue/topic.ts +153 -0
- package/lib/routes/kcna/news.ts +1 -1
- package/lib/routes/kcna/utils.ts +1 -1
- package/lib/routes/keep/user.ts +1 -1
- package/lib/routes/kemono/index.ts +74 -75
- package/lib/routes/kemono/templates/source.art +24 -0
- package/lib/routes/kepu/live.ts +1 -1
- package/lib/routes/keylol/index.ts +88 -12
- package/lib/routes/kpmg/insights.ts +143 -0
- package/lib/routes/kpmg/namespace.ts +10 -0
- package/lib/routes/kpmg/templates/description.art +11 -0
- package/lib/routes/kyodonews/index.ts +5 -3
- package/lib/routes/lang/room.ts +1 -1
- package/lib/routes/lanqiao/utils.ts +1 -1
- package/lib/routes/layoffs/index.ts +1 -1
- package/lib/routes/learnku/topic.ts +1 -1
- package/lib/routes/leetcode/dailyquestion-cn.ts +1 -1
- package/lib/routes/leetcode/dailyquestion-en.ts +1 -1
- package/lib/routes/leetcode/dailyquestion-solution-en.ts +1 -1
- package/lib/routes/lemmy/index.ts +4 -2
- package/lib/routes/lfsyd/utils.ts +1 -1
- package/lib/routes/lianxh/index.ts +116 -0
- package/lib/routes/lianxh/namespace.ts +7 -0
- package/lib/routes/line/publisher.ts +13 -23
- package/lib/routes/line/today.ts +1 -10
- package/lib/routes/line/utils.ts +3 -2
- package/lib/routes/linkedin/cn/utils.ts +1 -1
- package/lib/routes/linkedin/jobs.ts +69 -11
- package/lib/routes/linkedin/namespace.ts +1 -1
- package/lib/routes/linkedin/utils.ts +21 -6
- package/lib/routes/liveuamap/index.ts +2 -1
- package/lib/routes/lkong/forum.ts +1 -1
- package/lib/routes/lkong/thread.ts +1 -1
- package/lib/routes/lofter/tag.ts +3 -3
- package/lib/routes/lofter/user.ts +6 -5
- package/lib/routes/logclub/index.ts +1 -1
- package/lib/routes/logclub/report.ts +1 -1
- package/lib/routes/logonews/index.ts +1 -3
- package/lib/routes/loltw/news.ts +1 -1
- package/lib/routes/lovelive-anime/news.ts +1 -1
- package/lib/routes/lovelive-anime/schedules.ts +1 -1
- package/lib/routes/lovelive-anime/topics.ts +1 -1
- package/lib/routes/lrepacks/index.ts +201 -0
- package/lib/routes/lrepacks/namespace.ts +8 -0
- package/lib/routes/lrepacks/templates/description.art +21 -0
- package/lib/routes/luolei/index.ts +150 -0
- package/lib/routes/luolei/namespace.ts +8 -0
- package/lib/routes/luolei/templates/description.art +19 -0
- package/lib/routes/lvv2/news.ts +1 -1
- package/lib/routes/lvv2/top.ts +1 -1
- package/lib/routes/lxixsxa/discography.ts +1 -1
- package/lib/routes/lxixsxa/information.ts +1 -1
- package/lib/routes/lxixsxa/jsonp-helper.ts +1 -1
- package/lib/routes/m4/index.ts +3 -2
- package/lib/routes/macupdate/app.ts +4 -4
- package/lib/routes/magazinelib/latest-magazine.ts +1 -1
- package/lib/routes/magnumphotos/magazine.ts +63 -0
- package/lib/routes/magnumphotos/namespace.ts +6 -0
- package/lib/routes/mail/imap.ts +2 -1
- package/lib/routes/manhuagui/subscribe.ts +3 -2
- package/lib/routes/mastodon/account-id.ts +2 -1
- package/lib/routes/mastodon/timeline-local.ts +2 -1
- package/lib/routes/mastodon/timeline-remote.ts +2 -1
- package/lib/routes/mastodon/utils.ts +3 -2
- package/lib/routes/matters/author.ts +63 -0
- package/lib/routes/matters/latest.ts +74 -0
- package/lib/routes/matters/namespace.ts +7 -0
- package/lib/routes/matters/tags.ts +85 -0
- package/lib/routes/matters/utils.ts +30 -0
- package/lib/routes/mckinsey/cn/index.ts +4 -7
- package/lib/routes/mdpi/journal.ts +1 -1
- package/lib/routes/medium/following.ts +3 -2
- package/lib/routes/medium/for-you.ts +3 -2
- package/lib/routes/medium/graphql.ts +12 -12
- package/lib/routes/medium/list.ts +4 -2
- package/lib/routes/medium/parse-article.ts +1 -1
- package/lib/routes/medium/tag.ts +3 -2
- package/lib/routes/metacritic/index.ts +2 -2
- package/lib/routes/metacritic/release.ts +2 -1
- package/lib/routes/meteor/utils.ts +1 -1
- package/lib/routes/mihoyo/bbs/cache.ts +2 -1
- package/lib/routes/mihoyo/bbs/follow-list.ts +1 -1
- package/lib/routes/mihoyo/bbs/official.ts +107 -17
- package/lib/routes/mihoyo/bbs/timeline.ts +2 -1
- package/lib/routes/mihoyo/bbs/utils.ts +1 -1
- package/lib/routes/mihoyo/templates/official.art +7 -0
- package/lib/routes/mihoyo/ys/news.ts +1 -1
- package/lib/routes/mindmeister/example.ts +1 -1
- package/lib/routes/minecraft/blockedservers.ts +52 -0
- package/lib/routes/minecraft/java-runtime.ts +127 -0
- package/lib/routes/mingpao/index.ts +1 -1
- package/lib/routes/mingpao/templates/fancybox.art +1 -1
- package/lib/routes/miniflux/entry.ts +2 -1
- package/lib/routes/miniflux/subscription.ts +2 -1
- package/lib/routes/mirror/index.ts +2 -1
- package/lib/routes/missav/new.ts +1 -1
- package/lib/routes/missav/templates/preview.art +1 -1
- package/lib/routes/misskey/featured-notes.ts +2 -1
- package/lib/routes/misskey/utils.ts +1 -1
- package/lib/routes/mittrchina/index.ts +1 -1
- package/lib/routes/mixcloud/index.ts +27 -6
- package/lib/routes/mixcloud/queries.ts +934 -186
- package/lib/routes/modelscope/community.ts +1 -1
- package/lib/routes/modelscope/datasets.ts +1 -1
- package/lib/routes/modelscope/studios.ts +1 -1
- package/lib/routes/modrinth/versions.ts +14 -13
- package/lib/routes/mox/index.ts +61 -31
- package/lib/routes/mydrivers/index.ts +1 -1
- package/lib/routes/myfigurecollection/activity.ts +3 -2
- package/lib/routes/myfigurecollection/index.ts +3 -2
- package/lib/routes/mymusicsheet/usersheets.ts +1 -1
- package/lib/routes/natgeo/dailyphoto.ts +1 -1
- package/lib/routes/nationalgeographic/latest-stories.ts +1 -1
- package/lib/routes/nature/siteindex.ts +3 -3
- package/lib/routes/nautil/topics.ts +1 -1
- package/lib/routes/nber/all.ts +19 -0
- package/lib/routes/nber/{index.ts → common.ts} +6 -35
- package/lib/routes/nber/namespace.ts +1 -0
- package/lib/routes/nber/new.ts +20 -0
- package/lib/routes/ncc-cma/cmdp.ts +290 -33
- package/lib/routes/ncc-cma/namespace.ts +2 -0
- package/lib/routes/ncpssd/namespace.ts +6 -0
- package/lib/routes/ncpssd/newlist.ts +98 -0
- package/lib/routes/ncu/jwc.ts +13 -2
- package/lib/routes/netflav/index.ts +1 -1
- package/lib/routes/newrank/douyin.ts +2 -1
- package/lib/routes/newrank/wechat.ts +2 -1
- package/lib/routes/news/xhsxw.ts +1 -1
- package/lib/routes/newyorker/namespace.ts +6 -0
- package/lib/routes/newyorker/news.ts +62 -0
- package/lib/routes/newzmz/util.ts +1 -1
- package/lib/routes/nhentai/{other.ts → index.ts} +5 -9
- package/lib/routes/nhentai/namespace.ts +1 -0
- package/lib/routes/nhentai/search.ts +0 -5
- package/lib/routes/nhentai/util.ts +11 -10
- package/lib/routes/nhk/news-web-easy.ts +1 -1
- package/lib/routes/nhk/news.ts +1 -1
- package/lib/routes/nikkei/asia/index.ts +1 -10
- package/lib/routes/nikkei/cn/index.ts +40 -4
- package/lib/routes/nikkei/index.ts +5 -4
- package/lib/routes/nikkei/namespace.ts +1 -1
- package/lib/routes/nikkei/news.ts +10 -18
- package/lib/routes/nintendo/direct.ts +1 -1
- package/lib/routes/nintendo/eshop-cn.ts +2 -1
- package/lib/routes/nintendo/eshop-hk.ts +1 -1
- package/lib/routes/nintendo/eshop-jp.ts +1 -1
- package/lib/routes/nintendo/eshop-us.ts +2 -2
- package/lib/routes/nintendo/news-china.ts +2 -1
- package/lib/routes/nintendo/utils.ts +1 -1
- package/lib/routes/nju/jw.ts +4 -2
- package/lib/routes/njuferret/blog.ts +41 -0
- package/lib/routes/njuferret/namespace.ts +10 -0
- package/lib/routes/njust/cwc.ts +2 -1
- package/lib/routes/njust/dgxg.ts +2 -1
- package/lib/routes/njust/eoe.ts +2 -1
- package/lib/routes/njust/jwc.ts +2 -1
- package/lib/routes/njxzc/utils/index.ts +31 -13
- package/lib/routes/nlc/read.ts +1 -1
- package/lib/routes/nmc/weatheralarm.ts +1 -2
- package/lib/routes/nmtv/column.ts +1 -1
- package/lib/routes/nosec/index.ts +5 -4
- package/lib/routes/notefolio/search.ts +1 -1
- package/lib/routes/notion/database.ts +5 -3
- package/lib/routes/npm/package.ts +1 -1
- package/lib/routes/nua/dc.ts +2 -1
- package/lib/routes/nua/lib.ts +2 -1
- package/lib/routes/nudt/namespace.ts +6 -0
- package/lib/routes/nudt/yjszs.ts +68 -0
- package/lib/routes/nymity/censorbib.ts +51 -0
- package/lib/routes/nymity/namespace.ts +6 -0
- package/lib/routes/nytimes/daily-briefing-chinese.ts +1 -1
- package/lib/routes/oceanengine/arithmetic-index.ts +5 -4
- package/lib/routes/odaily/activity.ts +6 -1
- package/lib/routes/odaily/user.ts +6 -1
- package/lib/routes/oeeee/app/channel.ts +1 -1
- package/lib/routes/oeeee/app/reporter.ts +1 -1
- package/lib/routes/oeeee/web.ts +1 -1
- package/lib/routes/olevod/namespace.ts +6 -0
- package/lib/routes/olevod/vod.ts +49 -0
- package/lib/routes/olevod/vodlist.ts +48 -0
- package/lib/routes/ollama/models.ts +39 -0
- package/lib/routes/ollama/namespace.ts +6 -0
- package/lib/routes/oncc/index.ts +1 -1
- package/lib/routes/oncc/money18.ts +1 -1
- package/lib/routes/onet/news.ts +1 -1
- package/lib/routes/onet/utils.ts +1 -1
- package/lib/routes/openai/common.ts +2 -2
- package/lib/routes/orcid/index.ts +1 -1
- package/lib/routes/oreno3d/main.ts +1 -1
- package/lib/routes/oshwhub/explore.ts +1 -1
- package/lib/routes/otobanana/cast.ts +5 -5
- package/lib/routes/otobanana/livestream.ts +5 -5
- package/lib/routes/otobanana/timeline.ts +5 -5
- package/lib/routes/otobanana/utils.ts +1 -1
- package/lib/routes/oup/index.ts +1 -1
- package/lib/routes/p-articles/contributors.ts +53 -0
- package/lib/routes/p-articles/namespace.ts +13 -0
- package/lib/routes/p-articles/section.ts +60 -0
- package/lib/routes/p-articles/utils.ts +21 -0
- package/lib/routes/panewslab/news.ts +1 -11
- package/lib/routes/panewslab/{index.ts → profundity.ts} +3 -11
- package/lib/routes/papers/index.ts +101 -60
- package/lib/routes/papers/namespace.ts +2 -0
- package/lib/routes/patagonia/new-arrivals.ts +1 -1
- package/lib/routes/penguin-random-house/utils.ts +1 -1
- package/lib/routes/people/index.ts +2 -1
- package/lib/routes/pianyuan/utils.ts +3 -2
- package/lib/routes/picnob/user.ts +19 -6
- package/lib/routes/picuki/profile.ts +1 -1
- package/lib/routes/pikabu/templates/video.art +1 -1
- package/lib/routes/pikabu/utils.ts +1 -1
- package/lib/routes/pixabay/search.ts +1 -1
- package/lib/routes/pixiv/bookmarks.ts +4 -3
- package/lib/routes/pixiv/illustfollow.ts +5 -3
- package/lib/routes/pixiv/ranking.ts +5 -4
- package/lib/routes/pixiv/search.ts +5 -4
- package/lib/routes/pixiv/user.ts +4 -3
- package/lib/routes/plurk/top.ts +2 -1
- package/lib/routes/pnas/index.ts +1 -1
- package/lib/routes/pornhub/category-url.ts +3 -2
- package/lib/routes/pornhub/model.ts +4 -3
- package/lib/routes/pornhub/pornstar.ts +6 -5
- package/lib/routes/pornhub/templates/description.art +1 -1
- package/lib/routes/pornhub/users.ts +4 -3
- package/lib/routes/pornhub/utils.ts +2 -2
- package/lib/routes/producthunt/today.ts +1 -1
- package/lib/routes/ps/monthly-games.ts +1 -1
- package/lib/routes/pts/curations.ts +1 -1
- package/lib/routes/pts/index.ts +1 -1
- package/lib/routes/pts/live.ts +1 -1
- package/lib/routes/pts/projects.ts +1 -1
- package/lib/routes/pubmed/trending.ts +1 -1
- package/lib/routes/pwc/sustainability.ts +53 -49
- package/lib/routes/qbittorrent/news.ts +3 -6
- package/lib/routes/qidian/author.ts +1 -1
- package/lib/routes/qingting/podcast.ts +61 -39
- package/lib/routes/qoo-app/apps/comment.ts +1 -1
- package/lib/routes/qoo-app/notes/note.ts +1 -1
- package/lib/routes/qoo-app/user/app-comment.ts +1 -1
- package/lib/routes/qq/ac/utils.ts +1 -1
- package/lib/routes/qq/cfhd/index.ts +140 -0
- package/lib/routes/qq/fact/index.ts +1 -1
- package/lib/routes/qq/namespace.ts +4 -2
- package/lib/routes/questmobile/report.ts +1 -1
- package/lib/routes/qweather/3days.ts +3 -2
- package/lib/routes/qweather/now.ts +1 -1
- package/lib/routes/radio/album.ts +34 -50
- package/lib/routes/radio/index.ts +1 -1
- package/lib/routes/radio/zhibo.ts +10 -3
- package/lib/routes/radio-canada/latest.ts +1 -1
- package/lib/routes/rawkuma/manga.ts +1 -1
- package/lib/routes/readhub/index.ts +1 -1
- package/lib/routes/readhub/util.ts +2 -2
- package/lib/routes/reuters/common.ts +11 -11
- package/lib/routes/routledge/book-series.ts +1 -1
- package/lib/routes/rsc/journal.ts +1 -1
- package/lib/routes/rsshub/routes.ts +2 -10
- package/lib/routes/rsshub/transform/html.ts +2 -1
- package/lib/routes/rsshub/transform/json.ts +2 -1
- package/lib/routes/rsshub/transform/sitemap.ts +2 -1
- package/lib/routes/ruancan/utils.ts +2 -1
- package/lib/routes/sara/index.ts +66 -0
- package/lib/routes/sara/namespace.ts +6 -0
- package/lib/routes/saraba1st/digest.ts +1 -1
- package/lib/routes/science/blogs.ts +8 -2
- package/lib/routes/science/cover.ts +1 -1
- package/lib/routes/science/utils.ts +1 -1
- package/lib/routes/scmp/index.ts +2 -2
- package/lib/routes/sctv/programme.ts +1 -1
- package/lib/routes/sdu/extractor/index.ts +2 -1
- package/lib/routes/sdu/extractor/sdrj.ts +2 -1
- package/lib/routes/sdu/extractor/view.ts +2 -1
- package/lib/routes/sdu/extractor/wh/jwc.ts +2 -1
- package/lib/routes/sdu/extractor/wh/news.ts +2 -1
- package/lib/routes/seekingalpha/index.ts +60 -25
- package/lib/routes/seekingalpha/templates/summary.art +4 -0
- package/lib/routes/sehuatang/index.ts +1 -5
- package/lib/routes/sehuatang/user.ts +3 -2
- package/lib/routes/sensortower/blog.ts +1 -1
- package/lib/routes/shcstheatre/programs.ts +1 -1
- package/lib/routes/shiep/index.ts +4 -3
- package/lib/routes/shisu/en.ts +75 -0
- package/lib/routes/shisu/namespace.ts +1 -1
- package/lib/routes/shisu/news.ts +12 -12
- package/lib/routes/shmtu/portal.ts +1 -1
- package/lib/routes/shoac/recent-show.ts +1 -1
- package/lib/routes/shopify/apps/[handle].reviews.ts +78 -0
- package/lib/routes/shopify/apps/const.ts +1 -0
- package/lib/routes/shopify/apps/search.ts +82 -0
- package/lib/routes/shopify/namespace.ts +6 -0
- package/lib/routes/shuiguopai/index.ts +1 -1
- package/lib/routes/sigsac/ccs.ts +16 -22
- package/lib/routes/simpleinfo/index.ts +1 -1
- package/lib/routes/sina/templates/video.art +1 -1
- package/lib/routes/sina/utils.ts +1 -1
- package/lib/routes/sinchew/index.ts +1 -1
- package/lib/routes/sjtu/seiee/utils.ts +1 -1
- package/lib/routes/sjtu/tongqu/activity.ts +1 -1
- package/lib/routes/sjtu/yzb/zkxx.ts +2 -2
- package/lib/routes/sketis/isabelle-dev/blog/index.ts +77 -0
- package/lib/routes/sketis/namespace.ts +6 -0
- package/lib/routes/snowpeak/us-new-arrivals.ts +1 -1
- package/lib/routes/sobooks/utils.ts +2 -1
- package/lib/routes/sogou/search.ts +1 -1
- package/lib/routes/sohu/mp.ts +184 -64
- package/lib/routes/solidot/main.ts +2 -1
- package/lib/routes/southcn/nfapp/column.ts +1 -1
- package/lib/routes/southcn/nfapp/reporter.ts +1 -1
- package/lib/routes/spotify/utils.ts +3 -2
- package/lib/routes/springer/journal.ts +1 -1
- package/lib/routes/sse/inquire.ts +1 -1
- package/lib/routes/sse/renewal.ts +1 -1
- package/lib/routes/ssm/news.ts +1 -1
- package/lib/routes/sspai/author.ts +2 -1
- package/lib/routes/stbu/jsjxy.ts +3 -3
- package/lib/routes/stbu/xyxw.ts +14 -3
- package/lib/routes/stdaily/digitalpaper.ts +1 -1
- package/lib/routes/steam/appcommunityfeed.ts +92 -0
- package/lib/routes/steam/templates/appcommunityfeed-description.art +4 -0
- package/lib/routes/storyfm/episodes.ts +1 -1
- package/lib/routes/supchina/index.ts +1 -1
- package/lib/routes/supchina/podcasts.ts +5 -3
- package/lib/routes/surfshark/blog.ts +1 -1
- package/lib/routes/swjtu/gsee/yjs.ts +76 -0
- package/lib/routes/swjtu/utils.ts +1 -1
- package/lib/routes/swjtu/xg.ts +2 -1
- package/lib/routes/swpu/bgw.ts +31 -33
- package/lib/routes/swpu/dean.ts +27 -29
- package/lib/routes/swpu/dxy.ts +26 -28
- package/lib/routes/swpu/scs.ts +29 -31
- package/lib/routes/szse/inquire.ts +1 -1
- package/lib/routes/szse/projectdynamic.ts +1 -1
- package/lib/routes/taobao/zhongchou.ts +1 -1
- package/lib/routes/taptap/review.ts +23 -27
- package/lib/routes/taptap/topic.ts +3 -5
- package/lib/routes/taptap/utils.ts +1 -1
- package/lib/routes/techcrunch/news.ts +2 -0
- package/lib/routes/techflowpost/express.ts +1 -11
- package/lib/routes/techflowpost/index.ts +2 -2
- package/lib/routes/telegram/channel.ts +42 -20
- package/lib/routes/telegram/stickerpack.ts +2 -1
- package/lib/routes/telegram/tglib/channel.ts +2 -1
- package/lib/routes/telegram/tglib/client.ts +2 -1
- package/lib/routes/tencent/news/author.ts +14 -12
- package/lib/routes/tencent/news/coronavirus/data.ts +3 -2
- package/lib/routes/tencent/news/coronavirus/total.ts +1 -1
- package/lib/routes/tencent/qq/sdk/changelog.ts +2 -1
- package/lib/routes/tesla/cx.ts +1 -1
- package/lib/routes/test/index.ts +19 -1
- package/lib/routes/tfc-taiwan/common.ts +38 -0
- package/lib/routes/tfc-taiwan/index.ts +10 -40
- package/lib/routes/tfc-taiwan/topic.ts +17 -0
- package/lib/routes/tfc-taiwan/utils.ts +1 -1
- package/lib/routes/theatlantic/utils.ts +1 -1
- package/lib/routes/theblockbeats/index.ts +49 -18
- package/lib/routes/theblockbeats/namespace.ts +2 -2
- package/lib/routes/theblockbeats/templates/description.art +5 -0
- package/lib/routes/theinitium/author.ts +23 -0
- package/lib/routes/theinitium/channel.ts +28 -0
- package/lib/routes/theinitium/follow.ts +48 -0
- package/lib/routes/theinitium/tags.ts +23 -0
- package/lib/routes/theinitium/{full.ts → utils.ts} +19 -14
- package/lib/routes/themoviedb/api-key.ts +2 -1
- package/lib/routes/themoviedb/utils.ts +1 -1
- package/lib/routes/thenewslens/index.ts +1 -1
- package/lib/routes/thepaper/factpaper.ts +1 -1
- package/lib/routes/thepaper/utils.ts +1 -1
- package/lib/routes/{thecatcity → thepetcity}/index.ts +23 -32
- package/lib/routes/thepetcity/namespace.ts +6 -0
- package/lib/routes/thepetcity/terms-map.ts +28 -0
- package/lib/routes/thoughtco/index.ts +1 -1
- package/lib/routes/threads/index.ts +36 -38
- package/lib/routes/threads/utils.ts +44 -12
- package/lib/routes/tiktok/templates/user.art +1 -1
- package/lib/routes/tiktok/user.ts +1 -1
- package/lib/routes/timednews/news.ts +3 -7
- package/lib/routes/tingshuitz/shenzhen.ts +1 -1
- package/lib/routes/tingtingfm/program.ts +1 -1
- package/lib/routes/tophub/list.ts +1 -1
- package/lib/routes/tradingview/blog.ts +1 -1
- package/lib/routes/transcriptforest/index.ts +1 -1
- package/lib/routes/trending/all-trending.ts +3 -2
- package/lib/routes/trendingpapers/papers.ts +3 -9
- package/lib/routes/tribalfootball/latest.ts +2 -2
- package/lib/routes/tsinghua/lib/zydt.ts +129 -0
- package/lib/routes/tsinghua/namespace.ts +8 -0
- package/lib/routes/ttv/index.ts +78 -0
- package/lib/routes/ttv/namespace.ts +6 -0
- package/lib/routes/tvb/news.ts +1 -1
- package/lib/routes/tvtropes/featured.ts +1 -1
- package/lib/routes/twitch/schedule.ts +2 -1
- package/lib/routes/twitch/video.ts +4 -3
- package/lib/routes/twitter/api/developer-api/search.ts +3 -2
- package/lib/routes/twitter/api/developer-api/user.ts +3 -2
- package/lib/routes/twitter/api/index.ts +2 -1
- package/lib/routes/twitter/api/mobile-api/api.ts +3 -2
- package/lib/routes/twitter/api/mobile-api/constants.ts +1 -1
- package/lib/routes/twitter/api/mobile-api/login.ts +40 -37
- package/lib/routes/twitter/api/mobile-api/token.ts +2 -1
- package/lib/routes/twitter/api/web-api/api.ts +15 -2
- package/lib/routes/twitter/api/web-api/constants.ts +32 -1
- package/lib/routes/twitter/api/web-api/utils.ts +11 -6
- package/lib/routes/twitter/home.ts +2 -2
- package/lib/routes/twitter/keyword.ts +3 -3
- package/lib/routes/twitter/likes.ts +16 -11
- package/lib/routes/twitter/list.ts +2 -2
- package/lib/routes/twitter/media.ts +3 -3
- package/lib/routes/twitter/namespace.ts +4 -4
- package/lib/routes/twitter/trends.ts +3 -2
- package/lib/routes/twitter/tweet.ts +11 -2
- package/lib/routes/twitter/user.ts +8 -3
- package/lib/routes/twitter/utils.ts +11 -10
- package/lib/routes/twreporter/fetch-article.ts +1 -1
- package/lib/routes/txrjy/fornumtopic.ts +1 -1
- package/lib/routes/typst/namespace.ts +13 -0
- package/lib/routes/typst/universe.ts +82 -0
- package/lib/routes/u3c3/index.ts +1 -1
- package/lib/routes/u3c3/namespace.ts +1 -1
- package/lib/routes/u9a9/index.ts +2 -2
- package/lib/routes/u9a9/namespace.ts +1 -1
- package/lib/routes/udn/breaking-news.ts +1 -1
- package/lib/routes/uestc/cqe.ts +2 -1
- package/lib/routes/uestc/jwc.ts +2 -1
- package/lib/routes/uestc/news.ts +2 -1
- package/lib/routes/uestc/sise.ts +2 -1
- package/lib/routes/upc/jwc.ts +121 -0
- package/lib/routes/uptimerobot/rss.ts +5 -4
- package/lib/routes/urbandictionary/random.ts +1 -1
- package/lib/routes/usenix/usenix.ts +24 -31
- package/lib/routes/ustc/eeis.ts +2 -1
- package/lib/routes/ustc/gs.ts +2 -1
- package/lib/routes/ustc/math.ts +94 -0
- package/lib/routes/ustc/sist.ts +2 -1
- package/lib/routes/utgd/category.ts +1 -1
- package/lib/routes/utgd/timeline.ts +1 -1
- package/lib/routes/utgd/topic.ts +3 -2
- package/lib/routes/vcb-s/category.ts +1 -1
- package/lib/routes/vcb-s/index.ts +1 -1
- package/lib/routes/vimeo/category.ts +1 -1
- package/lib/routes/vimeo/channel.ts +1 -1
- package/lib/routes/vimeo/usr-videos.ts +1 -1
- package/lib/routes/wallpaperhub/index.ts +1 -1
- package/lib/routes/wallstreetcn/live.ts +1 -1
- package/lib/routes/warthunder/news.ts +1 -1
- package/lib/routes/watasuke/blog.ts +42 -0
- package/lib/routes/watasuke/namespace.ts +7 -0
- package/lib/routes/wechat/data258.ts +3 -2
- package/lib/routes/wechat/ershcimi.ts +1 -3
- package/lib/routes/wechat/feeddd.ts +7 -11
- package/lib/routes/wechat/tgchannel.ts +9 -2
- package/lib/routes/weekendhk/posts.ts +2 -2
- package/lib/routes/weibo/friends.ts +2 -1
- package/lib/routes/weibo/group.ts +2 -1
- package/lib/routes/weibo/keyword.ts +13 -11
- package/lib/routes/weibo/search/hot.ts +1 -1
- package/lib/routes/weibo/user.ts +1 -1
- package/lib/routes/wellcee/namespace.ts +7 -0
- package/lib/routes/wellcee/rent.ts +81 -0
- package/lib/routes/wellcee/support-city.ts +46 -0
- package/lib/routes/wellcee/templates/house.art +18 -0
- package/lib/routes/wellcee/types.ts +58 -0
- package/lib/routes/wellcee/utils.ts +45 -0
- package/lib/routes/whu/news.ts +1 -1
- package/lib/routes/whu/rsgis.ts +277 -0
- package/lib/routes/whu/util.ts +1 -1
- package/lib/routes/wikinews/index.ts +3 -3
- package/lib/routes/winstall/update.ts +1 -1
- package/lib/routes/wise/pair.ts +1 -1
- package/lib/routes/wmc-bj/publish.ts +1 -1
- package/lib/routes/wnacg/category.ts +17 -0
- package/lib/routes/wnacg/common.ts +111 -0
- package/lib/routes/wnacg/index.ts +7 -116
- package/lib/routes/wnacg/tag.ts +17 -0
- package/lib/routes/wordpress/index.ts +172 -0
- package/lib/routes/wordpress/namespace.ts +8 -0
- package/lib/routes/wordpress/util.ts +307 -0
- package/lib/routes/worldofwarships/devblog.ts +76 -0
- package/lib/routes/worldofwarships/namespace.ts +13 -0
- package/lib/routes/wsj/utils.ts +1 -1
- package/lib/routes/x-mol/news.ts +1 -1
- package/lib/routes/xianbao/index.ts +142 -0
- package/lib/routes/xianbao/namespace.ts +6 -0
- package/lib/routes/xiaoheihe/add2cart.ts +63 -0
- package/lib/routes/xiaoheihe/news.ts +2 -1
- package/lib/routes/xiaohongshu/user.ts +3 -2
- package/lib/routes/xiaomiyoupin/crowdfunding.ts +1 -1
- package/lib/routes/xiaomiyoupin/utils.ts +1 -1
- package/lib/routes/xiaoyuzhou/podcast.ts +1 -1
- package/lib/routes/ximalaya/album.ts +4 -4
- package/lib/routes/xinpianchang/util.ts +1 -1
- package/lib/routes/xjtu/dean.ts +22 -23
- package/lib/routes/xjtu/job.ts +1 -1
- package/lib/routes/xjtu/std.ts +1 -1
- package/lib/routes/xkb/index.ts +1 -1
- package/lib/routes/xsijishe/rank.ts +2 -1
- package/lib/routes/xueqiu/cookies.ts +15 -0
- package/lib/routes/xueqiu/favorite.ts +2 -7
- package/lib/routes/xueqiu/hots.ts +2 -6
- package/lib/routes/xueqiu/stock-comments.ts +1 -1
- package/lib/routes/xueqiu/stock-info.ts +2 -1
- package/lib/routes/xueqiu/timeline.ts +94 -0
- package/lib/routes/xueqiu/today.ts +2 -7
- package/lib/routes/xueqiu/user-stock.ts +28 -22
- package/lib/routes/xueqiu/user.ts +3 -7
- package/lib/routes/xys/new.ts +1 -1
- package/lib/routes/xyzrank/index.ts +1 -1
- package/lib/routes/yahoo/news/tw/index.ts +2 -1
- package/lib/routes/yahoo/news/tw/provider-helper.ts +2 -1
- package/lib/routes/yahoo/news/tw/provider.ts +2 -1
- package/lib/routes/yahoo/news/tw/utils.ts +1 -1
- package/lib/routes/yahoo/news/us/index.ts +2 -1
- package/lib/routes/yamibo/bbs/forum.ts +116 -0
- package/lib/routes/yamibo/bbs/thread.ts +84 -0
- package/lib/routes/yamibo/namespace.ts +6 -0
- package/lib/routes/yamibo/utils.ts +114 -0
- package/lib/routes/ycwb/index.ts +1 -1
- package/lib/routes/yenpress/namespace.ts +7 -0
- package/lib/routes/yenpress/series.ts +115 -0
- package/lib/routes/yenpress/templates/series.art +25 -0
- package/lib/routes/yicai/dt.ts +1 -1
- package/lib/routes/yicai/utils.ts +1 -1
- package/lib/routes/ymgal/game.ts +1 -1
- package/lib/routes/yoasobi-music/info.ts +1 -1
- package/lib/routes/yoasobi-music/jsonp-helper.ts +1 -1
- package/lib/routes/yoasobi-music/live.ts +1 -1
- package/lib/routes/yoasobi-music/media.ts +1 -1
- package/lib/routes/youku/channel.ts +1 -1
- package/lib/routes/youtube/channel.ts +5 -3
- package/lib/routes/youtube/charts.ts +5 -12
- package/lib/routes/youtube/community.ts +2 -10
- package/lib/routes/youtube/custom.ts +21 -4
- package/lib/routes/youtube/live.ts +8 -2
- package/lib/routes/youtube/namespace.ts +2 -2
- package/lib/routes/youtube/playlist.ts +8 -2
- package/lib/routes/youtube/subscriptions.ts +5 -10
- package/lib/routes/youtube/user.ts +12 -6
- package/lib/routes/youtube/utils.ts +112 -102
- package/lib/routes/yxdzqb/index.ts +1 -1
- package/lib/routes/zagg/new-arrivals.ts +1 -1
- package/lib/routes/zaobao/interactive.ts +2 -11
- package/lib/routes/zaobao/{index.ts → other.ts} +2 -10
- package/lib/routes/zaobao/realtime.ts +0 -8
- package/lib/routes/zaobao/util.ts +14 -10
- package/lib/routes/zcool/discover.ts +1 -1
- package/lib/routes/zcool/user.ts +2 -1
- package/lib/routes/zcool/utils.ts +1 -1
- package/lib/routes/zhihu/activities.ts +12 -39
- package/lib/routes/zhihu/answers.ts +3 -3
- package/lib/routes/zhihu/collection.ts +4 -4
- package/lib/routes/zhihu/daily-section.ts +3 -3
- package/lib/routes/zhihu/daily.ts +3 -3
- package/lib/routes/zhihu/hotlist.ts +3 -3
- package/lib/routes/zhihu/posts.ts +35 -33
- package/lib/routes/zhihu/question.ts +13 -41
- package/lib/routes/zhihu/timeline.ts +15 -10
- package/lib/routes/zhihu/topic.ts +9 -29
- package/lib/routes/zhihu/utils.ts +79 -38
- package/lib/routes/zhihu/xhu/activities.ts +8 -6
- package/lib/routes/zhihu/xhu/answers.ts +1 -1
- package/lib/routes/zhihu/xhu/auth.ts +7 -15
- package/lib/routes/zhihu/xhu/collection.ts +1 -1
- package/lib/routes/zhihu/xhu/posts.ts +1 -1
- package/lib/routes/zhihu/xhu/question.ts +3 -3
- package/lib/routes/zhihu/xhu/topic.ts +4 -4
- package/lib/routes/zhihu/zhuanlan.ts +4 -4
- package/lib/routes/zhitongcaijing/index.ts +1 -1
- package/lib/routes/zhiy/post.ts +1 -1
- package/lib/routes/zhonglun/index.ts +135 -0
- package/lib/routes/zhonglun/namespace.ts +8 -0
- package/lib/routes/zhonglun/templates/description.art +7 -0
- package/lib/routes/zhubai/index.ts +4 -3
- package/lib/routes/zhubai/top20.ts +1 -1
- package/lib/routes/zjol/paper.ts +2 -1
- package/lib/routes/zju/cst/index.ts +1 -1
- package/lib/routes/zodgame/forum.ts +3 -2
- package/lib/routes/zsxq/group.ts +63 -0
- package/lib/routes/zsxq/namespace.ts +6 -0
- package/lib/routes/zsxq/types.ts +149 -0
- package/lib/routes/zsxq/user.ts +58 -0
- package/lib/routes/zsxq/utils.ts +70 -0
- package/lib/routes/zuvio/utils.ts +1 -1
- package/lib/routes/zyshow/index.ts +1 -1
- package/lib/routes-deprecated/index.js +1 -1
- package/lib/setup.test.ts +184 -12
- package/lib/types.ts +4 -2
- package/lib/utils/git-hash.ts +3 -3
- package/lib/utils/got.test.ts +27 -1
- package/lib/utils/got.ts +39 -19
- package/lib/utils/helpers.ts +1 -1
- package/lib/utils/logger.ts +1 -1
- package/lib/utils/rand-user-agent.ts +2 -1
- package/lib/utils/render.ts +1 -1
- package/lib/utils/request-rewriter/get.ts +8 -1
- package/lib/utils/timezone.ts +1 -1
- package/lib/utils/wechat-mp.test.ts +411 -32
- package/lib/utils/wechat-mp.ts +447 -76
- package/lib/views/atom.tsx +15 -3
- package/lib/views/error.tsx +76 -43
- package/lib/views/index.tsx +5 -27
- package/lib/views/layout.tsx +50 -0
- package/lib/views/rss.tsx +5 -4
- package/lib/views/{rss3-ums.ts → rss3.ts} +2 -2
- package/package.json +63 -61
- package/lib/errors/not-found.ts +0 -3
- package/lib/errors/reject.ts +0 -3
- package/lib/errors/request-in-progress.ts +0 -3
- package/lib/routes/500px/user.ts +0 -60
- package/lib/routes/arknights/japan.ts +0 -50
- package/lib/routes/arknights/news.ts +0 -68
- package/lib/routes/baai/comments.ts +0 -59
- package/lib/routes/gov/anhui/kjt.ts +0 -65
- package/lib/routes/thecatcity/terms-map.ts +0 -28
- package/lib/routes/wechat/feeds.ts +0 -23
- package/lib/routes/wechat/wxnmh.ts +0 -45
- package/lib/routes-deprecated/blogs/wordpress.js +0 -50
- package/lib/routes-deprecated/fanbox/conv.js +0 -227
- package/lib/routes-deprecated/fanbox/header.js +0 -13
- package/lib/routes-deprecated/fanbox/main.js +0 -45
- package/lib/routes-deprecated/kpmg/insights.js +0 -79
- package/lib/routes-deprecated/manxiaosi/book.js +0 -49
- package/lib/routes-deprecated/matters/author.js +0 -49
- package/lib/routes-deprecated/matters/latest.js +0 -69
- package/lib/routes-deprecated/matters/tags.js +0 -56
- package/lib/routes-deprecated/p-articles/contributors.js +0 -45
- package/lib/routes-deprecated/p-articles/section.js +0 -53
- package/lib/routes-deprecated/p-articles/utils.js +0 -30
- package/lib/routes-deprecated/pediy/topic.js +0 -117
- package/lib/routes-deprecated/pediy/utils.js +0 -27
- package/lib/routes-deprecated/universities/bjtu/gs/index.js +0 -130
- /package/lib/routes/{ft → ftchinese}/utils.ts +0 -0
|
@@ -5,27 +5,34 @@ import { load } from 'cheerio';
|
|
|
5
5
|
import { parseRelativeDate } from '@/utils/parse-date';
|
|
6
6
|
|
|
7
7
|
const hostUrl = 'http://www.moa.gov.cn/';
|
|
8
|
-
const hostUrlObj = new URL(hostUrl); // 用于在下面判断host
|
|
8
|
+
const hostUrlObj = new URL(hostUrl); // 用于在下面判断 host
|
|
9
9
|
|
|
10
10
|
export const route: Route = {
|
|
11
11
|
path: '/moa/:suburl{.+}',
|
|
12
|
+
categories: ['government'],
|
|
13
|
+
example: '/gov/moa/gk/zcjd/',
|
|
12
14
|
radar: [
|
|
13
15
|
{
|
|
14
16
|
source: ['moa.gov.cn/'],
|
|
15
17
|
target: '/moa/:suburl',
|
|
16
18
|
},
|
|
17
19
|
],
|
|
18
|
-
|
|
19
|
-
|
|
20
|
+
parameters: { suburl: '下级目录,请使用最下级的目录' },
|
|
21
|
+
name: '中华人民共和国农业农村部 - 新闻',
|
|
22
|
+
maintainers: ['Origami404', 'lyqluis'],
|
|
20
23
|
handler,
|
|
21
24
|
url: 'moa.gov.cn/',
|
|
25
|
+
description: `更多例子:
|
|
26
|
+
- \`农业农村部动态\`的网页链接是\`http://www.moa.gov.cn/xw/zwdt/\`, 对应的\`suburl\`是\`xw/zwdt\`
|
|
27
|
+
- \`财务公开\`的网页链接是\`http://www.moa.gov.cn/gk/cwgk_1/\`, 对应的\`suburl\`是\`gk/cwgk_1\`
|
|
28
|
+
- 像[政策法规](http://www.moa.gov.cn/gk/zcfg/)这种页面(\`http://www.moa.gov.cn/gk/zcfg/\`), 它**不是**一个合法的分类目录,它是\`法律\`, \`行政法规\`, \`部门规章\`等一堆栏目的集合,这时候请点开对应栏目的\`更多 >>\`进入栏目的最下级目录,再根据上面的规则提取\`suburl\`
|
|
29
|
+
- 特别地,\`图片新闻\`对应的\`suburl\`为\`xw/tpxw/\`, \`最新公开\`对应的\`suburl\`为\`govpublic\`, \`数据>最新发布\`对应的\`suburl\`为\`sj/zxfb\``,
|
|
22
30
|
};
|
|
23
31
|
|
|
24
32
|
async function handler(ctx) {
|
|
25
33
|
const rawSuburl = ctx.req.param('suburl');
|
|
26
34
|
const suburl = rawSuburl.slice(-1) === '/' ? rawSuburl : rawSuburl + '/';
|
|
27
|
-
|
|
28
|
-
// 特殊处理两个, 其他的栏目都可以找到那种一个列表下去的目录
|
|
35
|
+
// 特殊处理两个,其他的栏目都可以找到那种一个列表下去的目录
|
|
29
36
|
if (suburl === 'xw/tpxw/') {
|
|
30
37
|
// 图片新闻
|
|
31
38
|
return await dealChannel(suburl, {
|
|
@@ -34,11 +41,22 @@ async function handler(ctx) {
|
|
|
34
41
|
titleSelector: 'a[class="block w_fill ellipsis adc ahc"]',
|
|
35
42
|
dateSelector: 'span',
|
|
36
43
|
});
|
|
37
|
-
} else if (suburl
|
|
38
|
-
//
|
|
39
|
-
return await
|
|
44
|
+
} else if (suburl.startsWith('sj/zxfb')) {
|
|
45
|
+
// 数据 - 最新发布
|
|
46
|
+
return await dealLatestDataChannel();
|
|
47
|
+
} else if (suburl.startsWith('gk')) {
|
|
48
|
+
// 公开
|
|
49
|
+
return await dealChannel(suburl, {
|
|
40
50
|
channelTitleSelector: 'title',
|
|
41
|
-
listSelector: '.
|
|
51
|
+
listSelector: '.commonlist li',
|
|
52
|
+
titleSelector: 'a',
|
|
53
|
+
dateSelector: 'span',
|
|
54
|
+
});
|
|
55
|
+
} else if (suburl.startsWith('govpublic')) {
|
|
56
|
+
// 最新公开
|
|
57
|
+
return await dealChannel('govpublic/1/index.htm', {
|
|
58
|
+
channelTitleText: '最新公开',
|
|
59
|
+
listSelector: '.commonlist li',
|
|
42
60
|
titleSelector: 'a',
|
|
43
61
|
dateSelector: 'span',
|
|
44
62
|
});
|
|
@@ -52,16 +70,16 @@ async function handler(ctx) {
|
|
|
52
70
|
}
|
|
53
71
|
}
|
|
54
72
|
|
|
55
|
-
//
|
|
73
|
+
// 处理文章列表,从那里获得一堆要爬取的页面,然后爬取
|
|
56
74
|
async function dealChannel(suburl, selectors) {
|
|
57
|
-
const { channelTitleSelector, listSelector, titleSelector, dateSelector } = selectors;
|
|
75
|
+
const { channelTitleSelector, listSelector, titleSelector, dateSelector, channelTitleText } = selectors;
|
|
58
76
|
|
|
59
|
-
// 为了与下面解析相对链接的dealLink
|
|
60
|
-
const url = hostUrl + suburl;
|
|
61
|
-
const
|
|
62
|
-
const $ = load(
|
|
77
|
+
// 为了与下面解析相对链接的 dealLink 配合,这里末尾必须保证有一条斜杠
|
|
78
|
+
const url = suburl.startsWith('http') ? suburl : hostUrl + suburl;
|
|
79
|
+
const response = await got.get(url);
|
|
80
|
+
const $ = load(response.data);
|
|
63
81
|
|
|
64
|
-
const channelTitle = $(channelTitleSelector).text();
|
|
82
|
+
const channelTitle = channelTitleText ?? $(channelTitleSelector).text();
|
|
65
83
|
|
|
66
84
|
const pageInfos = $(listSelector)
|
|
67
85
|
.map((i, e) => {
|
|
@@ -101,8 +119,7 @@ async function dealChannel(suburl, selectors) {
|
|
|
101
119
|
item = await dealGovpublicPage(link, item);
|
|
102
120
|
} else {
|
|
103
121
|
// 外部文章
|
|
104
|
-
item.description =
|
|
105
|
-
item.author = 'unknown';
|
|
122
|
+
item.description = `外部链接:${item.link}`;
|
|
106
123
|
}
|
|
107
124
|
|
|
108
125
|
cache.set(link, JSON.stringify(item));
|
|
@@ -117,18 +134,30 @@ async function dealChannel(suburl, selectors) {
|
|
|
117
134
|
};
|
|
118
135
|
}
|
|
119
136
|
|
|
120
|
-
//
|
|
137
|
+
// 处理正常文章,例子:http://www.moa.gov.cn/xw/zwdt/202309/t20230915_6436615.htm
|
|
121
138
|
async function dealNormalPage(link, item) {
|
|
122
|
-
const
|
|
123
|
-
const $ = load(
|
|
124
|
-
const metaElements = $('.bjjMAuthorBox span.dc_3').toArray();
|
|
139
|
+
const response = await got.get(link);
|
|
140
|
+
const $ = load(response.data);
|
|
125
141
|
|
|
126
|
-
//
|
|
142
|
+
// 互动-直播访谈
|
|
143
|
+
if (link.includes('zbft')) {
|
|
144
|
+
const pageHeader = $('.nybzb').html() ?? '';
|
|
145
|
+
const pics = $('.tpsl').html() ?? '';
|
|
146
|
+
const content = $('.wzsl').html() ?? '';
|
|
147
|
+
|
|
148
|
+
item.description = pageHeader + pics + content;
|
|
149
|
+
return item;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
// normal news
|
|
153
|
+
const metaElements = $('.bjjMAuthorBox span.dc_2').toArray();
|
|
154
|
+
|
|
155
|
+
// 政府网站变动不频繁,写死第几个应该没有多大关系
|
|
127
156
|
const author = $(metaElements[1]).text();
|
|
128
157
|
const source = $(metaElements[2]).text();
|
|
129
158
|
item.author = `${author} ${source}`;
|
|
130
159
|
|
|
131
|
-
//
|
|
160
|
+
// 对于这个网站内的链接,能提供更精确的时间
|
|
132
161
|
// 这个的日期跟时间之间的空格数量好像会乱变的
|
|
133
162
|
const exactTime = $(metaElements[0]).text();
|
|
134
163
|
const dateMatch = /\d{4}-\d{2}-\d{2}/.exec(exactTime);
|
|
@@ -140,34 +169,86 @@ async function dealNormalPage(link, item) {
|
|
|
140
169
|
return item;
|
|
141
170
|
}
|
|
142
171
|
|
|
143
|
-
//
|
|
172
|
+
// 处理那种带索引号的公示文章,例子:http://www.moa.gov.cn/gk/zcjd/202402/t20240219_6448654.htm
|
|
144
173
|
async function dealGovpublicPage(link, item) {
|
|
145
|
-
|
|
146
|
-
|
|
174
|
+
if (item.link.endsWith('.pdf')) {
|
|
175
|
+
return item;
|
|
176
|
+
}
|
|
177
|
+
const response = await got.get(link);
|
|
178
|
+
const $ = load(response.data);
|
|
179
|
+
|
|
180
|
+
const body = $('.gsj_htmlcon_bot');
|
|
181
|
+
const [, year, month, date] = $('.pubtime')
|
|
182
|
+
.text()
|
|
183
|
+
.match(/:(\d{4})[|年-](\d{1,2})[|月-](\d{1,2})日?/);
|
|
184
|
+
const [, author] = $('.pubtime.source')
|
|
185
|
+
?.text()
|
|
186
|
+
?.match(/:(.+)/) ?? [null, ''];
|
|
187
|
+
|
|
188
|
+
if (year && month && date) {
|
|
189
|
+
item.pubDate = `${year}-${month}-${date}`;
|
|
190
|
+
}
|
|
191
|
+
item.author = author;
|
|
192
|
+
item.description = body.html();
|
|
193
|
+
return item;
|
|
194
|
+
}
|
|
147
195
|
|
|
148
|
-
|
|
149
|
-
const
|
|
196
|
+
async function dealLatestDataChannel() {
|
|
197
|
+
const res = await got({
|
|
198
|
+
url: 'http://zdscxx.moa.gov.cn:8080/nyb/getMessages',
|
|
199
|
+
method: 'post',
|
|
200
|
+
json: {
|
|
201
|
+
page: 1,
|
|
202
|
+
rows: 20,
|
|
203
|
+
type: '最新发布',
|
|
204
|
+
isLatestMessage: true,
|
|
205
|
+
},
|
|
206
|
+
});
|
|
207
|
+
const items = await Promise.all(
|
|
208
|
+
res.data.result.table.map((item) => {
|
|
209
|
+
const { date, id } = item;
|
|
210
|
+
item.pubDate = date;
|
|
211
|
+
const link = (item.link = `http://zdscxx.moa.gov.cn:8080/nyb/pc/messageView.jsp?id=${id}`);
|
|
150
212
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
// 而且我也搞不懂到底是发布部门算作者还是写出来公告的部门算还是那个人算...
|
|
213
|
+
return cache.tryGet(link, async () => {
|
|
214
|
+
const { content, source } = await getLatestDataArticleDetail(id);
|
|
154
215
|
|
|
155
|
-
|
|
216
|
+
item.description = content;
|
|
217
|
+
item.author = source;
|
|
156
218
|
|
|
157
|
-
|
|
219
|
+
return item;
|
|
220
|
+
});
|
|
221
|
+
})
|
|
222
|
+
);
|
|
223
|
+
return {
|
|
224
|
+
title: `中华人民共和国农业农村部 - 数据 - 最新发布`,
|
|
225
|
+
link: 'http://zdscxx.moa.gov.cn:8080/nyb/pc/messageList.jsp',
|
|
226
|
+
item: items,
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
async function getLatestDataArticleDetail(id) {
|
|
231
|
+
const res = await got({
|
|
232
|
+
url: 'http://zdscxx.moa.gov.cn:8080/nyb/getMessagesById',
|
|
233
|
+
method: 'post',
|
|
234
|
+
form: {
|
|
235
|
+
id,
|
|
236
|
+
},
|
|
237
|
+
});
|
|
238
|
+
return res.data.result;
|
|
158
239
|
}
|
|
159
240
|
|
|
160
|
-
// 处理相对url 和 按链接对文章类型进行分类
|
|
241
|
+
// 处理相对 url 和 按链接对文章类型进行分类
|
|
161
242
|
function dealLink(element, url) {
|
|
162
243
|
const rawLink = element.attr('href');
|
|
163
244
|
const { host, href } = new URL(rawLink, url);
|
|
164
245
|
|
|
165
|
-
// host
|
|
166
|
-
// url里带govpublic
|
|
167
|
-
//
|
|
246
|
+
// host 不同的是外部文章,outside
|
|
247
|
+
// url 里带 govpublic 的都是公示文章,govpublic
|
|
248
|
+
// 其他的都算普通文章,normal
|
|
168
249
|
let pageType = null;
|
|
169
250
|
if (host === hostUrlObj.host) {
|
|
170
|
-
pageType = href.includes('govpublic') ? 'govpublic' : 'normal';
|
|
251
|
+
pageType = href.includes('gk') || href.includes('govpublic') ? 'govpublic' : 'normal';
|
|
171
252
|
} else {
|
|
172
253
|
pageType = 'outside';
|
|
173
254
|
}
|
|
@@ -5,7 +5,7 @@ import got from '@/utils/got';
|
|
|
5
5
|
import { load } from 'cheerio';
|
|
6
6
|
import { parseDate } from '@/utils/parse-date';
|
|
7
7
|
import { art } from '@/utils/render';
|
|
8
|
-
import
|
|
8
|
+
import path from 'node:path';
|
|
9
9
|
|
|
10
10
|
const rootUrl = 'https://www.safe.gov.cn';
|
|
11
11
|
|
|
@@ -6,7 +6,7 @@ import got from '@/utils/got';
|
|
|
6
6
|
import { load } from 'cheerio';
|
|
7
7
|
import { parseDate } from '@/utils/parse-date';
|
|
8
8
|
import { art } from '@/utils/render';
|
|
9
|
-
import
|
|
9
|
+
import path from 'node:path';
|
|
10
10
|
|
|
11
11
|
const rootUrl = 'https://xgzlyhd.samr.gov.cn';
|
|
12
12
|
const apiUrl = new URL('gjjly/message/getMessageList', rootUrl).href;
|
|
@@ -7,7 +7,7 @@ import got from '@/utils/got';
|
|
|
7
7
|
import { load } from 'cheerio';
|
|
8
8
|
import { parseDate } from '@/utils/parse-date';
|
|
9
9
|
import { art } from '@/utils/render';
|
|
10
|
-
import
|
|
10
|
+
import path from 'node:path';
|
|
11
11
|
|
|
12
12
|
export const route: Route = {
|
|
13
13
|
path: '/shanghai/wgj/:page?',
|
|
@@ -4,6 +4,7 @@ import got from '@/utils/got';
|
|
|
4
4
|
import { load } from 'cheerio';
|
|
5
5
|
import { parseDate } from '@/utils/parse-date';
|
|
6
6
|
import timezone from '@/utils/timezone';
|
|
7
|
+
import InvalidParameterError from '@/errors/types/invalid-parameter';
|
|
7
8
|
const rootUrl = 'http://www.sz.gov.cn/cn/xxgk/zfxxgj/';
|
|
8
9
|
|
|
9
10
|
const config = {
|
|
@@ -49,7 +50,7 @@ export const route: Route = {
|
|
|
49
50
|
async function handler(ctx) {
|
|
50
51
|
const cfg = config[ctx.req.param('caty')];
|
|
51
52
|
if (!cfg) {
|
|
52
|
-
throw new
|
|
53
|
+
throw new InvalidParameterError('Bad category. See <a href="https://docs.rsshub.app/routes/government#guang-dong-sheng-ren-min-zheng-fu-guang-dong-sheng-shen-zhen-shi-ren-min-zheng-fu">docs</a>');
|
|
53
54
|
}
|
|
54
55
|
|
|
55
56
|
const currentUrl = new URL(cfg.link, rootUrl).href;
|
|
@@ -3,6 +3,7 @@ import got from '@/utils/got';
|
|
|
3
3
|
import { load } from 'cheerio';
|
|
4
4
|
import { parseDate } from '@/utils/parse-date';
|
|
5
5
|
import timezone from '@/utils/timezone';
|
|
6
|
+
import InvalidParameterError from '@/errors/types/invalid-parameter';
|
|
6
7
|
|
|
7
8
|
const config = {
|
|
8
9
|
tzgg: {
|
|
@@ -41,7 +42,7 @@ async function handler(ctx) {
|
|
|
41
42
|
const baseUrl = 'http://zjj.sz.gov.cn/xxgk/';
|
|
42
43
|
const cfg = config[ctx.req.param('caty')];
|
|
43
44
|
if (!cfg) {
|
|
44
|
-
throw new
|
|
45
|
+
throw new InvalidParameterError('Bad category. See <a href="https://docs.rsshub.app/routes/government#guang-dong-sheng-ren-min-zheng-fu-shen-zhen-shi-zhu-fang-he-jian-she-ju">docs</a>');
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
const currentUrl = new URL(cfg.link, baseUrl).href;
|
|
@@ -7,7 +7,7 @@ import got from '@/utils/got';
|
|
|
7
7
|
import { load } from 'cheerio';
|
|
8
8
|
import { parseDate } from '@/utils/parse-date';
|
|
9
9
|
import { art } from '@/utils/render';
|
|
10
|
-
import
|
|
10
|
+
import path from 'node:path';
|
|
11
11
|
import timezone from '@/utils/timezone';
|
|
12
12
|
|
|
13
13
|
// 各地区url信息
|
|
@@ -7,7 +7,7 @@ import got from '@/utils/got';
|
|
|
7
7
|
import { load } from 'cheerio';
|
|
8
8
|
import { parseDate } from '@/utils/parse-date';
|
|
9
9
|
import { art } from '@/utils/render';
|
|
10
|
-
import
|
|
10
|
+
import path from 'node:path';
|
|
11
11
|
import timezone from '@/utils/timezone';
|
|
12
12
|
|
|
13
13
|
const rootUrl = 'http://www.mztoday.gov.cn';
|
|
@@ -4,12 +4,12 @@ const __dirname = getCurrentPath(import.meta.url);
|
|
|
4
4
|
|
|
5
5
|
import { getSubPath } from '@/utils/common-utils';
|
|
6
6
|
import cache from '@/utils/cache';
|
|
7
|
-
import
|
|
7
|
+
import ofetch from '@/utils/ofetch';
|
|
8
8
|
import { load } from 'cheerio';
|
|
9
9
|
import timezone from '@/utils/timezone';
|
|
10
10
|
import { parseDate } from '@/utils/parse-date';
|
|
11
11
|
import { art } from '@/utils/render';
|
|
12
|
-
import
|
|
12
|
+
import path from 'node:path';
|
|
13
13
|
|
|
14
14
|
export const route: Route = {
|
|
15
15
|
path: '/stats/*',
|
|
@@ -29,9 +29,13 @@ export const route: Route = {
|
|
|
29
29
|
description: `::: tip
|
|
30
30
|
路径处填写对应页面 URL 中 \`http://www.stats.gov.cn/\` 后的字段。下面是一个例子。
|
|
31
31
|
|
|
32
|
-
若订阅 [数据 > 数据解读](http://www.stats.gov.cn/sj/sjjd/)
|
|
32
|
+
若订阅 [数据 > 数据解读](http://www.stats.gov.cn/sj/sjjd/)
|
|
33
|
+
则将对应页面 URL \`http://www.stats.gov.cn/sj/sjjd/\` 中 \`http://www.stats.gov.cn/\` 后的字段 \`sj/sjjd\` 作为路径填入。
|
|
34
|
+
此时路由为 [\`/gov/stats/sj/sjjd\`](https://rsshub.app/gov/stats/sj/sjjd)
|
|
33
35
|
|
|
34
|
-
若订阅 [新闻 > 时政要闻 > 中央精神](http://www.stats.gov.cn/xw/szyw/zyjs/)
|
|
36
|
+
若订阅 [新闻 > 时政要闻 > 中央精神](http://www.stats.gov.cn/xw/szyw/zyjs/)
|
|
37
|
+
则将对应页面 URL \`http://www.stats.gov.cn/xw/szyw/zyjs/\` 中 \`http://www.stats.gov.cn/\`
|
|
38
|
+
后的字段 \`xw/szyw/zyjs\` 作为路径填入。此时路由为 [\`/gov/stats/xw/szyw/zyjs\`](https://rsshub.app/gov/stats/xw/szyw/zyjs)
|
|
35
39
|
:::`,
|
|
36
40
|
};
|
|
37
41
|
|
|
@@ -39,25 +43,23 @@ async function handler(ctx) {
|
|
|
39
43
|
const limit = ctx.req.query('limit') ? Number.parseInt(ctx.req.query('limit')) : 15;
|
|
40
44
|
const rootUrl = 'http://www.stats.gov.cn';
|
|
41
45
|
|
|
46
|
+
const { headers } = await ofetch.raw(rootUrl);
|
|
47
|
+
const sid = headers
|
|
48
|
+
?.getSetCookie()
|
|
49
|
+
.find((s) => s.startsWith('wzws_sessionid='))
|
|
50
|
+
?.split(';')[0] as string;
|
|
51
|
+
|
|
42
52
|
const pathname = getSubPath(ctx) === '/stats' ? '/sj/zxfb/' : getSubPath(ctx).replace(/^\/stats(.*)/, '$1');
|
|
43
53
|
const currentUrl = `${rootUrl}${pathname.endsWith('/') ? pathname : pathname + '/'}`;
|
|
44
54
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
const headers = {
|
|
51
|
-
cookie: response.headers['set-cookie'].join(' ').match(/(wzws_sessionid=.*?);/)[1],
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
response = await got({
|
|
55
|
-
method: 'get',
|
|
56
|
-
url: currentUrl,
|
|
57
|
-
headers,
|
|
55
|
+
const response = await ofetch(currentUrl, {
|
|
56
|
+
headers: {
|
|
57
|
+
Cookie: sid,
|
|
58
|
+
Referer: currentUrl,
|
|
59
|
+
},
|
|
58
60
|
});
|
|
59
61
|
|
|
60
|
-
const $ = load(response
|
|
62
|
+
const $ = load(response);
|
|
61
63
|
|
|
62
64
|
let items = $($('a.pchide').length === 0 ? 'a[title]' : '.list-content a.pchide')
|
|
63
65
|
.slice(0, limit)
|
|
@@ -74,13 +76,14 @@ async function handler(ctx) {
|
|
|
74
76
|
items = await Promise.all(
|
|
75
77
|
items.map((item) =>
|
|
76
78
|
cache.tryGet(item.link, async () => {
|
|
77
|
-
const detailResponse = await
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
const detailResponse = await ofetch(item.link, {
|
|
80
|
+
headers: {
|
|
81
|
+
Cookie: sid,
|
|
82
|
+
Referer: rootUrl,
|
|
83
|
+
},
|
|
81
84
|
});
|
|
82
85
|
|
|
83
|
-
const content = load(detailResponse
|
|
86
|
+
const content = load(detailResponse);
|
|
84
87
|
|
|
85
88
|
// articles from www.news.cn or www.gov.cn
|
|
86
89
|
|
|
@@ -4,6 +4,7 @@ import got from '@/utils/got';
|
|
|
4
4
|
import { load } from 'cheerio';
|
|
5
5
|
import { parseDate } from '@/utils/parse-date';
|
|
6
6
|
import timezone from '@/utils/timezone';
|
|
7
|
+
import InvalidParameterError from '@/errors/types/invalid-parameter';
|
|
7
8
|
|
|
8
9
|
export const route: Route = {
|
|
9
10
|
path: '/suzhou/news/:uid',
|
|
@@ -119,7 +120,7 @@ async function handler(ctx) {
|
|
|
119
120
|
title = '苏州市政府 - 民生资讯';
|
|
120
121
|
break;
|
|
121
122
|
default:
|
|
122
|
-
throw new
|
|
123
|
+
throw new InvalidParameterError('pattern not matched');
|
|
123
124
|
}
|
|
124
125
|
if (apiUrl) {
|
|
125
126
|
const response = await got(apiUrl);
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { Route } from '@/types';
|
|
2
|
+
import { parseDate } from '@/utils/parse-date';
|
|
3
|
+
import got from '@/utils/got';
|
|
4
|
+
import { load } from 'cheerio';
|
|
5
|
+
import dayjs from 'dayjs';
|
|
6
|
+
|
|
7
|
+
export const route: Route = {
|
|
8
|
+
path: '/zj/search/:websiteid?/:word/:cateid?',
|
|
9
|
+
categories: ['government'],
|
|
10
|
+
example: '/gov/zj/search',
|
|
11
|
+
parameters: {
|
|
12
|
+
websiteid: '搜索范围-全省、各市各区、详细信息点击源网站https://www.zj.gov.cn/请求中寻找',
|
|
13
|
+
word: '搜索关键词-默认:人才',
|
|
14
|
+
cateid: '信息分类-默认:658(全部)',
|
|
15
|
+
sortType: '排序类型-默认:2(按时间)',
|
|
16
|
+
},
|
|
17
|
+
radar: [
|
|
18
|
+
{
|
|
19
|
+
source: ['search.zj.gov.cn/jsearchfront/search.do'],
|
|
20
|
+
target: '/zj/search/:websiteid?/:word/:cateid?',
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
name: '浙江省人民政府-全省政府网站统一搜索',
|
|
24
|
+
url: 'search.zj.gov.cn/jsearchfront/search.do',
|
|
25
|
+
maintainers: ['HaoyuLee'],
|
|
26
|
+
description: `
|
|
27
|
+
| 行政区域 | websiteid |
|
|
28
|
+
| ------------ | -- |
|
|
29
|
+
| 宁波市本级 | 330201000000000 |
|
|
30
|
+
|
|
31
|
+
| 搜索关键词 | word |
|
|
32
|
+
|
|
33
|
+
| 信息分类 | cateid |
|
|
34
|
+
|
|
35
|
+
| 排序类型 | sortType |
|
|
36
|
+
| ------------ | -- |
|
|
37
|
+
| 按相关度 | 1 |
|
|
38
|
+
| 按时间 | 2 |
|
|
39
|
+
`,
|
|
40
|
+
async handler(ctx) {
|
|
41
|
+
const { websiteid = '330201000000000', word = '人才', cateid = 658, sortType = 2 } = ctx.req.param();
|
|
42
|
+
const {
|
|
43
|
+
data: { result: list },
|
|
44
|
+
} = await got.post('https://search.zj.gov.cn/jsearchfront/interfaces/cateSearch.do', {
|
|
45
|
+
form: {
|
|
46
|
+
websiteid,
|
|
47
|
+
pg: '30',
|
|
48
|
+
p: '1',
|
|
49
|
+
cateid,
|
|
50
|
+
word,
|
|
51
|
+
checkError: 1,
|
|
52
|
+
isContains: 0,
|
|
53
|
+
q: word,
|
|
54
|
+
begin: dayjs().subtract(1, 'week').format('YYYYMMDD'),
|
|
55
|
+
end: dayjs().format('YYYYMMDD'),
|
|
56
|
+
timetype: 2,
|
|
57
|
+
pos: 'title,content,keyword',
|
|
58
|
+
sortType,
|
|
59
|
+
},
|
|
60
|
+
});
|
|
61
|
+
const items =
|
|
62
|
+
list?.map((item: string) => {
|
|
63
|
+
const $ = load(item);
|
|
64
|
+
const title = $('.titleWrapper>a');
|
|
65
|
+
const footer = $('.sourceTime>span');
|
|
66
|
+
return {
|
|
67
|
+
title: title.text().trim() || '',
|
|
68
|
+
link: title.attr('href') || '',
|
|
69
|
+
pubDate: parseDate(footer.eq(1).text().trim().replace('时间:', '')) || '',
|
|
70
|
+
author: footer.eq(0).text().trim().replace('来源:', '') || '',
|
|
71
|
+
description: $('.newsDescribe>a').text() || '',
|
|
72
|
+
};
|
|
73
|
+
}) || [];
|
|
74
|
+
return {
|
|
75
|
+
title: '浙江省人民政府-全省政府网站统一搜索',
|
|
76
|
+
link: 'https://search.zj.gov.cn/jsearchfront/search.do',
|
|
77
|
+
item: items,
|
|
78
|
+
};
|
|
79
|
+
},
|
|
80
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Route } from '@/types';
|
|
2
|
+
import cache from '@/utils/cache';
|
|
3
|
+
import parser from '@/utils/rss-parser';
|
|
4
|
+
import { load } from 'cheerio';
|
|
5
|
+
import { ofetch } from 'ofetch';
|
|
6
|
+
const host = 'https://www.gq.com';
|
|
7
|
+
export const route: Route = {
|
|
8
|
+
path: '/news',
|
|
9
|
+
categories: ['traditional-media'],
|
|
10
|
+
example: '/gq/news',
|
|
11
|
+
parameters: {},
|
|
12
|
+
features: {
|
|
13
|
+
requireConfig: false,
|
|
14
|
+
requirePuppeteer: false,
|
|
15
|
+
antiCrawler: false,
|
|
16
|
+
supportBT: false,
|
|
17
|
+
supportPodcast: false,
|
|
18
|
+
supportScihub: false,
|
|
19
|
+
},
|
|
20
|
+
radar: [
|
|
21
|
+
{
|
|
22
|
+
source: ['gq.com/'],
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
name: 'News',
|
|
26
|
+
maintainers: ['EthanWng97'],
|
|
27
|
+
handler,
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
async function handler() {
|
|
31
|
+
const rssUrl = `${host}/feed/rss`;
|
|
32
|
+
const feed = await parser.parseURL(rssUrl);
|
|
33
|
+
const items = await Promise.all(
|
|
34
|
+
feed.items.map((item) =>
|
|
35
|
+
cache.tryGet(item.link, async () => {
|
|
36
|
+
const data = await ofetch(item.link);
|
|
37
|
+
const $ = load(data);
|
|
38
|
+
const description = $('#main-content');
|
|
39
|
+
description.find('.article-body__footer').remove();
|
|
40
|
+
description.find('[class*="ContentHeaderContributorImage"]').remove();
|
|
41
|
+
description.find('h1').remove();
|
|
42
|
+
return {
|
|
43
|
+
title: item.title,
|
|
44
|
+
pubDate: item.pubDate,
|
|
45
|
+
link: item.link,
|
|
46
|
+
category: item.categories,
|
|
47
|
+
description: description.html(),
|
|
48
|
+
};
|
|
49
|
+
})
|
|
50
|
+
)
|
|
51
|
+
);
|
|
52
|
+
|
|
53
|
+
return {
|
|
54
|
+
title: 'GQ',
|
|
55
|
+
link: host,
|
|
56
|
+
description: `GQ is the global flagship of men's fashion, the arbiter of cool for anyone who sees the world through the lens of taste and style.`,
|
|
57
|
+
item: items,
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -9,7 +9,7 @@ const host = 'https://guangdiu.com';
|
|
|
9
9
|
export const route: Route = {
|
|
10
10
|
path: '/search/:query?',
|
|
11
11
|
categories: ['shopping'],
|
|
12
|
-
example: '/guangdiu/search/
|
|
12
|
+
example: '/guangdiu/search/q=百度网盘',
|
|
13
13
|
parameters: { query: '链接参数,对应网址问号后的内容' },
|
|
14
14
|
features: {
|
|
15
15
|
requireConfig: false,
|
|
@@ -5,8 +5,9 @@ const __dirname = getCurrentPath(import.meta.url);
|
|
|
5
5
|
import got from '@/utils/got';
|
|
6
6
|
import { load } from 'cheerio';
|
|
7
7
|
import { art } from '@/utils/render';
|
|
8
|
-
import
|
|
8
|
+
import path from 'node:path';
|
|
9
9
|
import { isValidHost } from '@/utils/valid-host';
|
|
10
|
+
import InvalidParameterError from '@/errors/types/invalid-parameter';
|
|
10
11
|
|
|
11
12
|
export const route: Route = {
|
|
12
13
|
path: '/:username/:products',
|
|
@@ -31,7 +32,7 @@ async function handler(ctx) {
|
|
|
31
32
|
const username = ctx.req.param('username');
|
|
32
33
|
const products = ctx.req.param('products');
|
|
33
34
|
if (!isValidHost(username)) {
|
|
34
|
-
throw new
|
|
35
|
+
throw new InvalidParameterError('Invalid username');
|
|
35
36
|
}
|
|
36
37
|
const url = `https://${username}.gumroad.com/l/${products}`;
|
|
37
38
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Route } from '@/types';
|
|
2
2
|
import got from '@/utils/got';
|
|
3
3
|
import { parseList, parseItem } from './utils';
|
|
4
|
+
import InvalidParameterError from '@/errors/types/invalid-parameter';
|
|
4
5
|
|
|
5
6
|
const channelMap = {
|
|
6
7
|
calendar: 'pac',
|
|
@@ -42,7 +43,7 @@ async function handler(ctx) {
|
|
|
42
43
|
const result = parseList(response.result);
|
|
43
44
|
|
|
44
45
|
if (result.length === 0) {
|
|
45
|
-
throw new
|
|
46
|
+
throw new InvalidParameterError('Unknown channel');
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
const channelName = result[0].channels[0].name;
|