rsshub 1.0.0-master.eb9cabb → 1.0.0-master.ebb62b5
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/lib/config.ts +39 -1
- package/lib/errors/index.tsx +2 -1
- package/lib/index.ts +48 -15
- package/lib/middleware/debug.ts +6 -4
- package/lib/middleware/header.test.ts +1 -0
- package/lib/middleware/header.ts +6 -0
- package/lib/middleware/template.test.ts +8 -0
- package/lib/middleware/template.tsx +5 -0
- package/lib/registry.ts +71 -1
- package/lib/router.js +0 -6
- package/lib/routes/18comic/album.ts +59 -64
- package/lib/routes/18comic/search.ts +53 -4
- package/lib/routes/18comic/utils.ts +70 -1
- package/lib/routes/36kr/hot-list.ts +1 -1
- package/lib/routes/36kr/index.ts +1 -1
- package/lib/routes/3dmgame/news-center.ts +1 -1
- package/lib/routes/500px/tribe-set.ts +1 -1
- package/lib/routes/acfun/article.ts +1 -1
- package/lib/routes/acfun/bangumi.ts +1 -1
- package/lib/routes/acfun/video.ts +1 -1
- package/lib/routes/aeon/category.ts +1 -1
- package/lib/routes/aeon/type.ts +1 -1
- package/lib/routes/agirls/topic-list.ts +1 -1
- package/lib/routes/agirls/topic.ts +1 -1
- package/lib/routes/agirls/z-index.ts +1 -1
- package/lib/routes/aibase/daily.ts +110 -0
- package/lib/routes/aibase/discover.ts +1 -1
- package/lib/routes/aibase/news.ts +1 -1
- package/lib/routes/aibase/topic.ts +1 -1
- package/lib/routes/aibase/util.ts +3 -0
- package/lib/routes/ainvest/news.ts +1 -1
- package/lib/routes/ajmide/index.ts +1 -1
- package/lib/routes/aliresearch/information.ts +1 -1
- package/lib/routes/android/security-bulletin.ts +61 -0
- package/lib/routes/anthropic/research.ts +112 -0
- package/lib/routes/apnews/topics.ts +2 -1
- package/lib/routes/apnews/utils.ts +1 -1
- package/lib/routes/app-sales/index.ts +200 -0
- package/lib/routes/app-sales/mostwanted.ts +194 -0
- package/lib/routes/app-sales/namespace.ts +9 -0
- package/lib/routes/app-sales/templates/description.art +120 -0
- package/lib/routes/app-sales/util.ts +161 -0
- package/lib/routes/apple/apps.ts +1 -1
- package/lib/routes/apple/security-releases.ts +179 -0
- package/lib/routes/apple/templates/security-releases.art +28 -0
- package/lib/routes/appleinsider/index.ts +1 -1
- package/lib/routes/augmentcode/blog.ts +161 -0
- package/lib/routes/augmentcode/namespace.ts +9 -0
- package/lib/routes/augmentcode/templates/description.art +17 -0
- package/lib/routes/baidu/gushitong/index.ts +1 -1
- package/lib/routes/bakamh/manga.ts +74 -0
- package/lib/routes/bakamh/namespace.ts +8 -0
- package/lib/routes/bandisoft/history.ts +329 -0
- package/lib/routes/bandisoft/namespace.ts +9 -0
- package/lib/routes/banyuetan/index.ts +238 -0
- package/lib/routes/banyuetan/namespace.ts +9 -0
- package/lib/routes/banyuetan/templates/description.art +21 -0
- package/lib/routes/bbc/learningenglish.ts +76 -0
- package/lib/routes/behance/user.ts +1 -1
- package/lib/routes/bfl/announcements.ts +127 -0
- package/lib/routes/bfl/namespace.ts +9 -0
- package/lib/routes/bigquant/collections.ts +1 -1
- package/lib/routes/bilibili/bangumi.ts +1 -1
- package/lib/routes/bilibili/cache.ts +19 -20
- package/lib/routes/bilibili/check-cookie.ts +31 -0
- package/lib/routes/bilibili/dynamic.ts +29 -15
- package/lib/routes/bilibili/followings-dynamic.ts +9 -3
- package/lib/routes/bilibili/ranking.ts +3 -1
- package/lib/routes/bilibili/readlist.ts +1 -1
- package/lib/routes/bilibili/video.ts +3 -1
- package/lib/routes/binance/announcement.ts +1 -1
- package/lib/routes/bitget/announcement.ts +1 -1
- package/lib/routes/bjp/apod.ts +1 -1
- package/lib/routes/bloomberg/authors.ts +1 -1
- package/lib/routes/bloomberg/index.ts +1 -1
- package/lib/routes/bookfere/category.ts +1 -1
- package/lib/routes/bsky/feeds.ts +1 -1
- package/lib/routes/bsky/keyword.ts +15 -10
- package/lib/routes/bsky/posts.ts +1 -1
- package/lib/routes/bupt/scss.ts +98 -0
- package/lib/routes/caixin/latest.ts +1 -1
- package/lib/routes/cara/likes.ts +1 -1
- package/lib/routes/cara/portfolio.ts +1 -1
- package/lib/routes/cara/timeline.ts +1 -1
- package/lib/routes/changba/user.ts +1 -1
- package/lib/routes/chaping/banner.ts +1 -1
- package/lib/routes/chaping/news.ts +1 -1
- package/lib/routes/chaping/newsflash.ts +1 -1
- package/lib/routes/chiphell/namespace.ts +7 -0
- package/lib/routes/chiphell/portal.ts +82 -0
- package/lib/routes/chnmuseum/namespace.ts +10 -0
- package/lib/routes/chnmuseum/xingnew.ts +73 -0
- package/lib/routes/chnmuseum/xwzt.ts +67 -0
- package/lib/routes/chocolatey/namespace.ts +9 -0
- package/lib/routes/chocolatey/packages.ts +122 -0
- package/lib/routes/chub/characters.ts +4 -6
- package/lib/routes/cih-index/namespace.ts +7 -0
- package/lib/routes/cih-index/report.ts +74 -0
- package/lib/routes/civitai/user.ts +90 -0
- package/lib/routes/cmde/index.ts +1 -1
- package/lib/routes/cna/index.ts +2 -24
- package/lib/routes/cna/utils.ts +23 -0
- package/lib/routes/cna/web/index.ts +2 -22
- package/lib/routes/cnbeta/namespace.ts +1 -1
- package/lib/routes/cngal/entry.ts +2 -2
- package/lib/routes/cngal/weekly.ts +3 -3
- package/lib/routes/cockroachlabs/blog.ts +113 -0
- package/lib/routes/cockroachlabs/namespace.ts +7 -0
- package/lib/routes/copymanga/comic.ts +7 -9
- package/lib/routes/cuilingmag/index.ts +1 -1
- package/lib/routes/cyzone/author.ts +1 -1
- package/lib/routes/cyzone/label.ts +1 -1
- package/lib/routes/daum/potplayer.ts +257 -0
- package/lib/routes/dcfever/news.ts +1 -1
- package/lib/routes/dcfever/reviews.ts +1 -1
- package/lib/routes/dcfever/trading-search.ts +1 -1
- package/lib/routes/dcfever/trading.ts +1 -1
- package/lib/routes/dedao/index.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/deepl/blog.ts +422 -0
- package/lib/routes/deepl/namespace.ts +9 -0
- package/lib/routes/deepl/templates/description.art +21 -0
- package/lib/routes/deepmind/blog.ts +1 -1
- package/lib/routes/diandong/news.ts +1 -1
- package/lib/routes/digitalcameraworld/news.ts +1 -1
- package/lib/routes/dlsite/campaign.ts +1 -1
- package/lib/routes/dlsite/ci-en/article.ts +1 -1
- package/lib/routes/dlsite/new.ts +1 -1
- package/lib/routes/dn/news.ts +1 -1
- package/lib/routes/dockerhub/build.ts +1 -1
- package/lib/routes/dongqiudi/daily.ts +1 -1
- package/lib/routes/dongqiudi/player-news.ts +1 -1
- package/lib/routes/dongqiudi/result.ts +1 -1
- package/lib/routes/dongqiudi/special.ts +1 -1
- package/lib/routes/dongqiudi/team-news.ts +1 -1
- package/lib/routes/dongqiudi/top-news.ts +1 -1
- package/lib/routes/dora-world/article.ts +1 -1
- package/lib/routes/douban/other/group.ts +1 -1
- package/lib/routes/douban/other/list.ts +3 -3
- package/lib/routes/douban/other/topic.ts +1 -1
- package/lib/routes/douban/people/status.ts +1 -1
- package/lib/routes/dx2025/index.ts +1 -1
- package/lib/routes/eastmoney/report/index.ts +1 -1
- package/lib/routes/eastmoney/search/index.ts +1 -1
- package/lib/routes/eastmoney/ttjj/user.ts +1 -1
- package/lib/routes/economist/espresso.ts +1 -1
- package/lib/routes/economist/full.ts +1 -1
- package/lib/routes/embassy/supported-list.ts +1 -1
- package/lib/routes/epicgames/index.ts +1 -1
- package/lib/routes/eventernote/actors.ts +1 -1
- package/lib/routes/everia/article.ts +21 -0
- package/lib/routes/everia/category.ts +54 -0
- package/lib/routes/everia/const.ts +4 -0
- package/lib/routes/everia/latest.ts +49 -0
- package/lib/routes/everia/namespace.ts +6 -0
- package/lib/routes/everia/search.ts +45 -0
- package/lib/routes/everia/tag.ts +54 -0
- package/lib/routes/fanbox/utils.ts +1 -1
- package/lib/routes/fantia/search.ts +1 -1
- package/lib/routes/fantia/user.ts +1 -1
- package/lib/routes/fantube/creator.ts +69 -0
- package/lib/routes/fantube/namespace.ts +7 -0
- package/lib/routes/fantube/templates/post.art +17 -0
- package/lib/routes/fantube/types.ts +100 -0
- package/lib/routes/fantube/utils.ts +268 -0
- package/lib/routes/fashionnetwork/namespace.ts +1 -1
- package/lib/routes/fastbull/express-news.ts +1 -1
- package/lib/routes/fastbull/news.ts +1 -1
- package/lib/routes/fediverse/timeline.ts +1 -1
- package/lib/routes/ff14/ff14-global.ts +1 -1
- package/lib/routes/finviz/news.ts +1 -1
- package/lib/routes/followin/index.ts +1 -1
- package/lib/routes/followin/news.ts +1 -1
- package/lib/routes/foresightnews/article.ts +1 -1
- package/lib/routes/foresightnews/column.ts +1 -1
- package/lib/routes/foresightnews/index.ts +1 -1
- package/lib/routes/foresightnews/news.ts +1 -1
- package/lib/routes/freewechat/profile.ts +7 -1
- package/lib/routes/ftm/index.ts +1 -1
- package/lib/routes/furaffinity/browse.ts +1 -1
- package/lib/routes/furaffinity/home.ts +1 -1
- package/lib/routes/furaffinity/journals.ts +1 -1
- package/lib/routes/furaffinity/search.ts +1 -1
- package/lib/routes/furaffinity/shouts.ts +1 -1
- package/lib/routes/furaffinity/status.ts +1 -1
- package/lib/routes/fx678/kx.ts +1 -1
- package/lib/routes/gamer/ani/anime.ts +1 -1
- package/lib/routes/gamer/ani/new-anime.ts +1 -1
- package/lib/routes/gamer/gnn-index.ts +1 -1
- package/lib/routes/gamer/hot.ts +1 -1
- package/lib/routes/gcores/radio.ts +1 -1
- package/lib/routes/geekpark/index.ts +1 -1
- package/lib/routes/gelonghui/home.ts +1 -1
- package/lib/routes/gelonghui/hot-article.ts +1 -1
- package/lib/routes/gelonghui/keyword.ts +1 -1
- package/lib/routes/gelonghui/live.ts +1 -1
- package/lib/routes/gelonghui/subject.ts +1 -1
- package/lib/routes/gelonghui/user.ts +1 -1
- package/lib/routes/geocaching/blogs.ts +2 -2
- package/lib/routes/gettr/user.ts +1 -1
- package/lib/routes/github/activity.ts +2 -1
- package/lib/routes/github/issue.ts +1 -1
- package/lib/routes/github/star.ts +1 -1
- package/lib/routes/github/trending.ts +1 -1
- package/lib/routes/gmu/namespace.ts +7 -0
- package/lib/routes/gmu/news.ts +136 -0
- package/lib/routes/gmu/yjs.ts +173 -0
- package/lib/routes/go/jihs/idwr.ts +137 -0
- package/lib/routes/google/citations.ts +1 -1
- package/lib/routes/google/doodles.ts +1 -1
- package/lib/routes/google/news.ts +1 -1
- package/lib/routes/google/scholar.ts +1 -1
- package/lib/routes/google/search.ts +18 -30
- package/lib/routes/gov/chongqing/sydwgkzp.ts +22 -6
- package/lib/routes/gov/customs/list.ts +8 -3
- package/lib/routes/gov/hangzhou/zwfw.ts +1 -1
- package/lib/routes/gov/pbc/goutongjiaoliu.ts +1 -1
- package/lib/routes/gov/sichuan/deyang/govpublicinfo.ts +9 -10
- package/lib/routes/gq/news.ts +1 -1
- package/lib/routes/grist/featured.ts +1 -1
- package/lib/routes/grist/index.ts +1 -1
- package/lib/routes/grist/series.ts +1 -1
- package/lib/routes/grist/topic.ts +1 -1
- package/lib/routes/guokr/channel.ts +1 -1
- package/lib/routes/guokr/scientific.ts +1 -1
- package/lib/routes/hackernews/index.ts +1 -1
- package/lib/routes/harvard/health/blog.ts +1 -1
- package/lib/routes/hbr/topic.ts +1 -1
- package/lib/routes/hedwig/namespace.ts +7 -0
- package/lib/routes/hedwig/posts.ts +60 -0
- package/lib/routes/hellobtc/information.ts +1 -1
- package/lib/routes/hellobtc/kepu.ts +1 -1
- package/lib/routes/hellobtc/news.ts +1 -1
- package/lib/routes/hellogithub/index.ts +1 -1
- package/lib/routes/hkepc/index.ts +1 -1
- package/lib/routes/hpoi/all.ts +1 -1
- package/lib/routes/hpoi/character.ts +1 -1
- package/lib/routes/hpoi/work.ts +1 -1
- package/lib/routes/huawei/developer/harmonyos/samplecode.ts +69 -0
- package/lib/routes/huawei/namespace.ts +7 -0
- package/lib/routes/hupu/templates/description.art +1 -1
- package/lib/routes/huxiu/brief-column.ts +1 -1
- package/lib/routes/huxiu/channel.ts +1 -1
- package/lib/routes/huxiu/club.ts +1 -1
- package/lib/routes/huxiu/collection.ts +1 -1
- package/lib/routes/huxiu/member.ts +1 -1
- package/lib/routes/huxiu/moment.ts +1 -1
- package/lib/routes/huxiu/search.ts +1 -1
- package/lib/routes/huxiu/tag.ts +1 -1
- package/lib/routes/hyperdash/namespace.ts +7 -0
- package/lib/routes/hyperdash/templates/description.art +34 -0
- package/lib/routes/hyperdash/top-traders.ts +84 -0
- package/lib/routes/hyperdash/utils.ts +49 -0
- package/lib/routes/idolypride/news.ts +1 -1
- package/lib/routes/ielts/index.ts +1 -1
- package/lib/routes/ifanr/category.ts +1 -1
- package/lib/routes/ifanr/digest.ts +1 -1
- package/lib/routes/ifanr/index.ts +1 -1
- package/lib/routes/imdb/chart.ts +1 -1
- package/lib/routes/infoq/presentations.ts +1 -1
- package/lib/routes/infoq/recommend.ts +1 -1
- package/lib/routes/infoq/topic.ts +17 -14
- package/lib/routes/informedainews/docs.ts +1 -1
- package/lib/routes/inoreader/index.ts +1 -1
- package/lib/routes/inoreader/rss.ts +1 -1
- package/lib/routes/instagram/web-api/index.ts +17 -13
- package/lib/routes/instagram/web-api/utils.ts +46 -63
- package/lib/routes/javbus/index.ts +1 -1
- package/lib/routes/jianshu/collection.ts +1 -1
- package/lib/routes/jianshu/home.ts +1 -1
- package/lib/routes/jianshu/user.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/jin10/topic.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 +1 -1
- package/lib/routes/jjwxc/book.ts +1 -1
- package/lib/routes/keep/user.ts +1 -1
- package/lib/routes/kemono/const.ts +9 -0
- package/lib/routes/kemono/index.ts +282 -141
- package/lib/routes/kemono/types.ts +31 -0
- package/lib/routes/konachan/post.ts +27 -19
- package/lib/routes/kurogames/wutheringwaves/constants.ts +1 -1
- package/lib/routes/kurogames/wutheringwaves/news.ts +4 -1
- package/lib/routes/laohu8/personal.ts +1 -1
- package/lib/routes/lemmy/index.ts +1 -1
- package/lib/routes/lenovo/drive.ts +65 -0
- package/lib/routes/lenovo/namespace.ts +7 -0
- package/lib/routes/lenovo/templates/drive.art +9 -0
- package/lib/routes/line/publisher.ts +1 -1
- package/lib/routes/line/today.ts +1 -1
- package/lib/routes/lineageos/changes.ts +79 -0
- package/lib/routes/lineageos/namespace.ts +9 -0
- package/lib/routes/linkedin/cn/renderer.ts +1 -1
- package/lib/routes/linkedin/jobs.ts +1 -1
- package/lib/routes/liquipedia/cs-matches.ts +42 -14
- package/lib/routes/liveuamap/index.ts +1 -1
- package/lib/routes/lofter/collection.ts +1 -1
- package/lib/routes/lofter/tag.ts +1 -1
- package/lib/routes/lofter/user.ts +1 -1
- package/lib/routes/macfilos/blog.ts +1 -1
- package/lib/routes/magnumphotos/magazine.ts +1 -1
- package/lib/routes/makerworld/contest.ts +51 -0
- package/lib/routes/makerworld/namespace.ts +7 -0
- package/lib/routes/makerworld/trending.ts +45 -0
- package/lib/routes/makerworld/user-upload.ts +54 -0
- package/lib/routes/makerworld/utils.ts +18 -0
- package/lib/routes/mangadex/_access.ts +111 -0
- package/lib/routes/mangadex/_constants.ts +75 -0
- package/lib/routes/mangadex/_feed.ts +184 -0
- package/lib/routes/mangadex/_profile.ts +47 -0
- package/lib/routes/mangadex/_utils.ts +49 -0
- package/lib/routes/mangadex/index.ts +16 -67
- package/lib/routes/mangadex/mdlist/feed.ts +156 -0
- package/lib/routes/mangadex/namespace.ts +2 -0
- package/lib/routes/mangadex/user/feed.ts +126 -0
- package/lib/routes/mangadex/user/follows.ts +149 -0
- package/lib/routes/mastodon/account-id.ts +1 -1
- package/lib/routes/mastodon/acct.ts +1 -1
- package/lib/routes/mastodon/tag.ts +48 -0
- package/lib/routes/mastodon/timeline-local.ts +1 -1
- package/lib/routes/mastodon/timeline-remote.ts +1 -1
- package/lib/routes/mathpix/blog.ts +155 -0
- package/lib/routes/mathpix/namespace.ts +9 -0
- package/lib/routes/mathpix/templates/description.art +21 -0
- package/lib/routes/matters/namespace.ts +1 -1
- package/lib/routes/mckinsey/cn/index.ts +1 -1
- package/lib/routes/medsci/index.ts +1 -1
- package/lib/routes/meta/ai-blog.ts +121 -0
- package/lib/routes/meta/namespace.ts +6 -0
- package/lib/routes/metacritic/index.ts +2 -2
- package/lib/routes/mihoyo/ys/news.ts +19 -73
- package/lib/routes/mirror/index.ts +1 -1
- package/lib/routes/missav/new.ts +27 -9
- package/lib/routes/misskey/featured-notes.ts +1 -1
- package/lib/routes/misskey/user-timeline.ts +1 -1
- package/lib/routes/mittrchina/index.ts +1 -1
- package/lib/routes/mixcloud/config.ts +129 -0
- package/lib/routes/mixcloud/index.ts +163 -107
- package/lib/routes/mixcloud/user-playlist.ts +31 -0
- package/lib/routes/mixi2/community.ts +72 -0
- package/lib/routes/mixi2/discovery.ts +52 -0
- package/lib/routes/mixi2/home.ts +51 -0
- package/lib/routes/mixi2/namespace.ts +8 -0
- package/lib/routes/mixi2/user.ts +77 -0
- package/lib/routes/mixi2/utils.ts +56 -0
- package/lib/routes/mygopen/index.ts +1 -1
- package/lib/routes/nasa/apod.ts +1 -1
- package/lib/routes/nautil/topics.ts +1 -1
- package/lib/routes/newyorker/news.ts +1 -1
- package/lib/routes/nga/forum.ts +1 -1
- package/lib/routes/nhk/news.ts +1 -1
- package/lib/routes/nifd/research.ts +16 -0
- package/lib/routes/njust/cs.ts +58 -0
- package/lib/routes/njust/utils.ts +1 -1
- package/lib/routes/notefolio/search.ts +1 -1
- package/lib/routes/now/news.ts +93 -33
- package/lib/routes/nuaa/utils/pypasswaf.ts +1 -1
- package/lib/routes/nytimes/book.ts +1 -1
- package/lib/routes/nytimes/daily-briefing-chinese.ts +1 -1
- package/lib/routes/nytimes/index.ts +1 -1
- package/lib/routes/nytimes/rss.ts +1 -1
- package/lib/routes/odaily/activity.ts +1 -1
- package/lib/routes/odaily/newsflash.ts +1 -1
- package/lib/routes/odaily/post.ts +1 -1
- package/lib/routes/odaily/search-news.ts +1 -1
- package/lib/routes/odaily/user.ts +1 -1
- package/lib/routes/panewslab/author.ts +1 -1
- package/lib/routes/panewslab/news.ts +1 -1
- package/lib/routes/panewslab/profundity.ts +1 -1
- package/lib/routes/panewslab/topic.ts +1 -1
- package/lib/routes/paulgraham/article.ts +2 -2
- package/lib/routes/pconline/focus.ts +1 -1
- package/lib/routes/phoronix/index.ts +1 -1
- package/lib/routes/picnob/user.ts +64 -146
- package/lib/routes/picnob/utils.ts +14 -12
- package/lib/routes/picuki/namespace.ts +1 -7
- package/lib/routes/picuki/profile.ts +111 -171
- package/lib/routes/picuki/utils.ts +5 -10
- package/lib/routes/pingwest/status.ts +1 -1
- package/lib/routes/pingwest/tag.ts +1 -1
- package/lib/routes/pingwest/user.ts +1 -1
- package/lib/routes/pixabay/search.ts +1 -1
- package/lib/routes/pixiv/ranking.ts +1 -1
- package/lib/routes/pixiv/search.ts +1 -1
- package/lib/routes/pixiv/user.ts +1 -1
- package/lib/routes/pixivision/index.ts +1 -1
- package/lib/routes/plurk/anonymous.ts +1 -1
- package/lib/routes/plurk/hotlinks.ts +1 -1
- package/lib/routes/plurk/news.ts +1 -1
- package/lib/routes/plurk/search.ts +1 -1
- package/lib/routes/plurk/top.ts +1 -1
- package/lib/routes/plurk/topic.ts +1 -1
- package/lib/routes/plurk/user.ts +1 -1
- package/lib/routes/podwise/collections.ts +1 -1
- package/lib/routes/pornhub/category.ts +1 -1
- package/lib/routes/pornhub/model.ts +1 -1
- package/lib/routes/pornhub/pornstar.ts +1 -1
- package/lib/routes/pornhub/search.ts +1 -1
- package/lib/routes/ps/monthly-games.ts +1 -1
- package/lib/routes/psyche/topic.ts +1 -1
- package/lib/routes/python/namespace.ts +9 -0
- package/lib/routes/python/release.ts +120 -0
- package/lib/routes/qbitai/category.ts +1 -1
- package/lib/routes/qbitai/tag.ts +1 -1
- package/lib/routes/qidian/chapter.ts +1 -1
- package/lib/routes/questmobile/report.ts +1 -1
- package/lib/routes/radio/album.ts +40 -49
- package/lib/routes/radio/templates/description.art +2 -2
- package/lib/routes/readhub/daily.ts +1 -1
- package/lib/routes/readhub/index.ts +1 -1
- package/lib/routes/rebase/geekdaily.ts +1 -1
- package/lib/routes/reuters/common.ts +1 -1
- package/lib/routes/reuters/investigates.ts +1 -1
- package/lib/routes/rsshub/routes.ts +1 -1
- package/lib/routes/samrdprc/namespace.ts +7 -0
- package/lib/routes/samrdprc/news.ts +79 -0
- package/lib/routes/sankei/namespace.ts +7 -0
- package/lib/routes/sankei/news.ts +68 -0
- package/lib/routes/sankei/topics.ts +71 -0
- package/lib/routes/scoop/apps.ts +188 -0
- package/lib/routes/scoop/namespace.ts +9 -0
- package/lib/routes/scoop/templates/description.art +56 -0
- package/lib/routes/sehuatang/index.ts +27 -32
- package/lib/routes/seu/cyber/index.ts +78 -0
- package/lib/routes/simpleinfo/index.ts +1 -1
- package/lib/routes/sjtu/seiee/icisee.ts +67 -0
- package/lib/routes/slowmist/slowmist.ts +1 -1
- package/lib/routes/smartlink/index.ts +84 -0
- package/lib/routes/smartlink/namespace.ts +7 -0
- package/lib/routes/smzdm/article.ts +19 -3
- package/lib/routes/smzdm/baoliao.ts +19 -3
- package/lib/routes/smzdm/haowen-fenlei.ts +19 -3
- package/lib/routes/smzdm/haowen.ts +19 -3
- package/lib/routes/smzdm/keyword.ts +15 -2
- package/lib/routes/smzdm/product.ts +19 -3
- package/lib/routes/smzdm/ranking.ts +172 -156
- package/lib/routes/smzdm/utils.ts +7 -0
- package/lib/routes/sohu/mp.ts +1 -1
- package/lib/routes/solidot/main.ts +1 -1
- package/lib/routes/spotify/artist.ts +1 -1
- package/lib/routes/spotify/playlist.ts +1 -1
- package/lib/routes/spotify/show.ts +1 -1
- package/lib/routes/sspai/activity.ts +1 -1
- package/lib/routes/sspai/author.ts +1 -1
- package/lib/routes/sspai/bookmarks.ts +1 -1
- package/lib/routes/sspai/column.ts +1 -1
- package/lib/routes/sspai/index.ts +1 -1
- package/lib/routes/sspai/matrix.ts +1 -1
- package/lib/routes/sspai/series-update.ts +1 -1
- package/lib/routes/sspai/series.ts +1 -1
- package/lib/routes/sspai/shortcuts-gallery.ts +1 -1
- package/lib/routes/sspai/tag.ts +1 -1
- package/lib/routes/sspai/topic.ts +1 -1
- package/lib/routes/sspai/topics.ts +1 -1
- package/lib/routes/startuplatte/index.ts +1 -1
- package/lib/routes/steam/news.ts +281 -0
- package/lib/routes/stheadline/std/realtime.ts +24 -16
- package/lib/routes/stockedge/daily-news.ts +1 -1
- package/lib/routes/storm/channel.ts +80 -0
- package/lib/routes/tailwindcss/blog.ts +26 -0
- package/lib/routes/tailwindcss/constants.ts +2 -0
- package/lib/routes/tailwindcss/namespace.ts +7 -0
- package/lib/routes/tailwindcss/utils.ts +68 -0
- package/lib/routes/techflowpost/express.ts +1 -1
- package/lib/routes/techflowpost/index.ts +1 -1
- package/lib/routes/telegram/blog.ts +1 -1
- package/lib/routes/telegram/channel.ts +1 -1
- package/lib/routes/test/api-index.ts +13 -0
- package/lib/routes/theblockbeats/index.ts +3 -3
- package/lib/routes/theinitium/app.ts +1 -1
- package/lib/routes/theinitium/author.ts +1 -1
- package/lib/routes/theinitium/channel.ts +1 -1
- package/lib/routes/theinitium/tags.ts +1 -1
- package/lib/routes/themoviedb/seasons.ts +1 -1
- package/lib/routes/thepaper/channel.ts +1 -1
- package/lib/routes/thepaper/factpaper.ts +1 -1
- package/lib/routes/thepaper/featured.ts +1 -1
- package/lib/routes/thepaper/list.ts +1 -1
- package/lib/routes/thepaper/sidebar.ts +1 -1
- package/lib/routes/thepaper/user.ts +1 -1
- package/lib/routes/thepaper/utils.ts +8 -3
- package/lib/routes/thepetcity/index.ts +1 -1
- package/lib/routes/theverge/index.ts +1 -1
- package/lib/routes/threads/index.ts +1 -1
- package/lib/routes/thzt/index.ts +72 -0
- package/lib/routes/thzt/namespace.ts +8 -0
- package/lib/routes/timednews/news.ts +1 -1
- package/lib/routes/tingtingfm/program.ts +1 -1
- package/lib/routes/tju/yzb/index.ts +2 -2
- package/lib/routes/tophub/index.ts +1 -1
- package/lib/routes/tophub/list.ts +1 -1
- package/lib/routes/tver/namespace.ts +7 -0
- package/lib/routes/tver/series.ts +98 -0
- package/lib/routes/twitch/live.ts +1 -1
- package/lib/routes/twitch/video.ts +1 -1
- package/lib/routes/twitter/api/web-api/login.ts +1 -3
- package/lib/routes/twitter/api/web-api/utils.ts +24 -2
- package/lib/routes/twitter/keyword.ts +1 -1
- package/lib/routes/twitter/list.ts +1 -1
- package/lib/routes/twitter/media.ts +1 -1
- package/lib/routes/twitter/namespace.ts +1 -0
- package/lib/routes/twitter/user.ts +1 -1
- package/lib/routes/twitter/utils.ts +24 -16
- package/lib/routes/twreporter/category.ts +1 -1
- package/lib/routes/twreporter/newest.ts +1 -1
- package/lib/routes/udn/breaking-news.ts +1 -1
- package/lib/routes/uestc/auto.ts +1 -1
- package/lib/routes/uestc/cqe.ts +1 -1
- package/lib/routes/uestc/scse.ts +1 -1
- package/lib/routes/uestc/sice.ts +1 -1
- package/lib/routes/uestc/sise.ts +1 -1
- package/lib/routes/unusualwhales/news.ts +10 -8
- package/lib/routes/utgd/category.ts +1 -1
- package/lib/routes/utgd/timeline.ts +1 -1
- package/lib/routes/utgd/topic.ts +1 -1
- package/lib/routes/v2ex/tab.ts +1 -1
- package/lib/routes/v2ex/topics.ts +1 -1
- package/lib/routes/vertikal/latest.ts +1 -1
- package/lib/routes/vimeo/category.ts +1 -1
- package/lib/routes/vimeo/usr-videos.ts +1 -1
- package/lib/routes/visualstudio/code-blog.ts +67 -0
- package/lib/routes/visualstudio/namespace.ts +7 -0
- package/lib/routes/vocus/publication.ts +1 -1
- package/lib/routes/vocus/user.ts +1 -1
- package/lib/routes/voronoiapp/common.ts +1 -1
- package/lib/routes/warhammer-community/namespace.ts +7 -0
- package/lib/routes/warhammer-community/news.ts +73 -0
- package/lib/routes/warp/blog.ts +77 -0
- package/lib/routes/warp/namespace.ts +7 -0
- package/lib/routes/weibo/keyword.ts +1 -1
- package/lib/routes/weibo/search/hot.ts +1 -1
- package/lib/routes/weibo/user.ts +1 -1
- package/lib/routes/windsurf/blog.ts +118 -0
- package/lib/routes/windsurf/changelog.ts +100 -0
- package/lib/routes/windsurf/namespace.ts +9 -0
- package/lib/routes/windsurf/templates/description.art +21 -0
- package/lib/routes/woshipm/popular.ts +3 -2
- package/lib/routes/xiaohongshu/check-cookie.ts +16 -0
- package/lib/routes/xiaohongshu/user.ts +3 -3
- package/lib/routes/xiaohongshu/util.ts +24 -12
- package/lib/routes/xiaoyuzhou/podcast.ts +18 -5
- package/lib/routes/xjtu/ee-jzxx.ts +110 -0
- package/lib/routes/xsijishe/rank.ts +2 -2
- package/lib/routes/xueqiu/cookies.ts +1 -1
- package/lib/routes/xueqiu/user.ts +115 -52
- package/lib/routes/yahoo/news/index.ts +1 -1
- package/lib/routes/yahoo/news/listid.ts +1 -1
- package/lib/routes/yahoo/news/provider-helper.ts +1 -1
- package/lib/routes/yahoo/news/provider.ts +1 -1
- package/lib/routes/yande/post.ts +1 -1
- package/lib/routes/yilinzazhi/index.ts +1 -1
- package/lib/routes/yilinzazhi/latest.ts +1 -1
- package/lib/routes/youtube/api/google.ts +216 -0
- package/lib/routes/youtube/api/youtubei.ts +98 -0
- package/lib/routes/youtube/channel.ts +10 -35
- package/lib/routes/youtube/community.ts +5 -3
- package/lib/routes/youtube/playlist.ts +11 -30
- package/lib/routes/youtube/user.ts +12 -92
- package/lib/routes/youtube/utils.ts +27 -52
- package/lib/routes/youzhiyouxing/materials.ts +1 -1
- package/lib/routes/yuanliao/index.ts +218 -0
- package/lib/routes/yuanliao/namespace.ts +9 -0
- package/lib/routes/yyets/article.ts +1 -1
- package/lib/routes/yyets/today.ts +1 -1
- package/lib/routes/zaimanhua/comic.ts +88 -0
- package/lib/routes/zaimanhua/template/comic.art +3 -0
- package/lib/routes/zaimanhua/update.ts +42 -10
- package/lib/routes/zcool/top.ts +1 -1
- package/lib/routes/zcool/user.ts +1 -1
- package/lib/routes/zed/blog.ts +75 -0
- package/lib/routes/zed/namespace.ts +7 -0
- package/lib/routes/zhihu/activities.ts +1 -1
- package/lib/routes/zhihu/all-collections.ts +10 -1
- package/lib/routes/zhihu/check-cookie.ts +31 -0
- package/lib/routes/zhihu/collection.ts +9 -1
- package/lib/routes/zhihu/execlib/x-zse-96-v3.ts +5 -5
- package/lib/routes/zhihu/hot.ts +12 -79
- package/lib/routes/zhihu/topic.ts +11 -5
- package/lib/routes/zhihu/zhuanlan.ts +7 -2
- package/lib/routes/zhitongcaijing/index.ts +1 -1
- package/lib/routes/zongheng/detail.ts +77 -0
- package/lib/routes/zongheng/namespace.ts +7 -0
- package/lib/types.ts +48 -3
- package/lib/utils/cache/index.ts +2 -2
- package/lib/utils/helpers.test.ts +8 -1
- package/lib/utils/helpers.ts +19 -0
- package/lib/utils/proxy/index.ts +102 -18
- package/lib/utils/proxy/multi-proxy.ts +139 -0
- package/lib/utils/proxy/unify-proxy.ts +3 -1
- package/lib/utils/puppeteer-utils.test.ts +1 -1
- package/lib/utils/puppeteer.test.ts +136 -27
- package/lib/utils/puppeteer.ts +152 -28
- package/lib/utils/readable-social.test.ts +65 -0
- package/lib/utils/readable-social.ts +15 -1
- package/lib/utils/request-rewriter/fetch.ts +42 -4
- package/package.json +54 -56
- package/lib/routes/go/niid/idwr-dl.ts +0 -104
- package/lib/routes/google/templates/description.art +0 -6
- package/lib/routes/mihoyo/templates/ys.art +0 -4
- package/lib/routes/mixcloud/queries.ts +0 -2274
- package/lib/routes/picnob/templates/desc.art +0 -20
- package/lib/routes-deprecated/blogs/hedwig.js +0 -42
- package/lib/routes-deprecated/chiphell/forum.js +0 -67
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
import { type Data, type DataItem, type Route, ViewType } from '@/types';
|
|
2
|
+
|
|
3
|
+
import ofetch from '@/utils/ofetch';
|
|
4
|
+
import { parseDate } from '@/utils/parse-date';
|
|
5
|
+
|
|
6
|
+
import { type CheerioAPI, type Cheerio, load } from 'cheerio';
|
|
7
|
+
import type { Element } from 'domhandler';
|
|
8
|
+
import { type Context } from 'hono';
|
|
9
|
+
|
|
10
|
+
const idOptions = [
|
|
11
|
+
{
|
|
12
|
+
label: 'Bandizip',
|
|
13
|
+
value: 'bandizip',
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
label: 'Bandizip for Mac',
|
|
17
|
+
value: 'bandizip.mac',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
label: 'BandiView',
|
|
21
|
+
value: 'bandiview',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
label: 'Honeycam',
|
|
25
|
+
value: 'honeycam',
|
|
26
|
+
},
|
|
27
|
+
];
|
|
28
|
+
|
|
29
|
+
const languageOptions = [
|
|
30
|
+
{
|
|
31
|
+
label: 'English',
|
|
32
|
+
value: 'en',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
label: '中文(简体)',
|
|
36
|
+
value: 'cn',
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
label: '中文(繁體)',
|
|
40
|
+
value: 'tw',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
label: '日本語',
|
|
44
|
+
value: 'jp',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
label: 'Русский',
|
|
48
|
+
value: 'ru',
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
label: 'Español',
|
|
52
|
+
value: 'es',
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
label: 'Français',
|
|
56
|
+
value: 'fr',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
label: 'Deutsch',
|
|
60
|
+
value: 'de',
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
label: 'Italiano',
|
|
64
|
+
value: 'it',
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
label: 'Slovenčina',
|
|
68
|
+
value: 'sk',
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
label: 'Українська',
|
|
72
|
+
value: 'uk',
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
label: 'Беларуская',
|
|
76
|
+
value: 'be',
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
label: 'Dansk',
|
|
80
|
+
value: 'da',
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
label: 'Polski',
|
|
84
|
+
value: 'pl',
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
label: 'Português Brasileiro',
|
|
88
|
+
value: 'br',
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
label: 'Čeština',
|
|
92
|
+
value: 'cs',
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
label: 'Nederlands',
|
|
96
|
+
value: 'nl',
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
label: 'Slovenščina',
|
|
100
|
+
value: 'sl',
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
label: 'Türkçe',
|
|
104
|
+
value: 'tr',
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
label: 'ภาษาไทย',
|
|
108
|
+
value: 'th',
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
label: 'Ελληνικά',
|
|
112
|
+
value: 'gr',
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
label: "O'zbek",
|
|
116
|
+
value: 'uz',
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
label: 'Romanian',
|
|
120
|
+
value: 'ro',
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
label: '한국어',
|
|
124
|
+
value: 'kr',
|
|
125
|
+
},
|
|
126
|
+
];
|
|
127
|
+
|
|
128
|
+
export const handler = async (ctx: Context): Promise<Data> => {
|
|
129
|
+
const { id = 'bandizip', language = 'en' } = ctx.req.param();
|
|
130
|
+
const limit: number = Number.parseInt(ctx.req.query('limit') ?? '500', 10);
|
|
131
|
+
|
|
132
|
+
const validIds: Set<string> = new Set(idOptions.map((option) => option.value));
|
|
133
|
+
|
|
134
|
+
if (!validIds.has(id)) {
|
|
135
|
+
throw new Error(`Invalid id: ${id}. Allowed values are: ${[...validIds].join(', ')}`);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
const validLanguages: Set<string> = new Set(languageOptions.map((option) => option.value));
|
|
139
|
+
|
|
140
|
+
if (!validLanguages.has(language)) {
|
|
141
|
+
throw new Error(`Invalid language: ${language}. Allowed values are: ${[...validLanguages].join(', ')}`);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
const baseUrl: string = `https://${language}.bandisoft.com`;
|
|
145
|
+
const targetUrl: string = new URL(`${id}/history/`, baseUrl).href;
|
|
146
|
+
|
|
147
|
+
const response = await ofetch(targetUrl);
|
|
148
|
+
const $: CheerioAPI = load(response);
|
|
149
|
+
const lang = $('html').attr('lang') ?? 'en';
|
|
150
|
+
const author: string | undefined = $('meta[name="author"]').attr('content');
|
|
151
|
+
|
|
152
|
+
const items: DataItem[] = $('div.row')
|
|
153
|
+
.slice(0, limit)
|
|
154
|
+
.toArray()
|
|
155
|
+
.map((el): Element => {
|
|
156
|
+
const $el: Cheerio<Element> = $(el);
|
|
157
|
+
|
|
158
|
+
const version: string | undefined = $el.find('div.cell1').text();
|
|
159
|
+
const pubDateStr: string | undefined = $el.find('div.cell2').text();
|
|
160
|
+
|
|
161
|
+
const title: string = version;
|
|
162
|
+
const description: string | undefined = $el.find('ul.cell3').html() ?? undefined;
|
|
163
|
+
|
|
164
|
+
const linkUrl: string = targetUrl;
|
|
165
|
+
const guid: string = `bandisoft-${id}-${language}-${version}`;
|
|
166
|
+
const upDatedStr: string | undefined = pubDateStr;
|
|
167
|
+
|
|
168
|
+
const processedItem: DataItem = {
|
|
169
|
+
title,
|
|
170
|
+
description,
|
|
171
|
+
pubDate: pubDateStr ? parseDate(pubDateStr) : undefined,
|
|
172
|
+
link: linkUrl,
|
|
173
|
+
author,
|
|
174
|
+
guid,
|
|
175
|
+
id: guid,
|
|
176
|
+
content: {
|
|
177
|
+
html: description,
|
|
178
|
+
text: description,
|
|
179
|
+
},
|
|
180
|
+
updated: upDatedStr ? parseDate(upDatedStr) : undefined,
|
|
181
|
+
language: lang,
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
return processedItem;
|
|
185
|
+
});
|
|
186
|
+
|
|
187
|
+
return {
|
|
188
|
+
title: $('title').text(),
|
|
189
|
+
description: $('meta[name="description"]').attr('content'),
|
|
190
|
+
link: targetUrl,
|
|
191
|
+
item: items,
|
|
192
|
+
allowEmpty: true,
|
|
193
|
+
image: $('img#logo_light').attr('src'),
|
|
194
|
+
author,
|
|
195
|
+
language: lang,
|
|
196
|
+
id: targetUrl,
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
export const route: Route = {
|
|
201
|
+
path: '/history/:id?/:language?',
|
|
202
|
+
name: 'History',
|
|
203
|
+
url: 'www.bandisoft.com',
|
|
204
|
+
maintainers: ['nczitzk'],
|
|
205
|
+
handler,
|
|
206
|
+
example: '/bandisoft/history/bandizip',
|
|
207
|
+
parameters: {
|
|
208
|
+
id: {
|
|
209
|
+
description: 'ID, `bandizip` by default',
|
|
210
|
+
options: idOptions,
|
|
211
|
+
},
|
|
212
|
+
language: {
|
|
213
|
+
description: 'Language, `en` by default',
|
|
214
|
+
options: languageOptions,
|
|
215
|
+
},
|
|
216
|
+
},
|
|
217
|
+
description: `:::tip
|
|
218
|
+
To subscribe to [Bandizip Version History](https://www.bandisoft.com/bandizip/history/), where the source URL is \`https://www.bandisoft.com/bandizip/history/\`, extract the certain parts from this URL to be used as parameters, resulting in the route as [\`/bandisoft/history/bandizip\`](https://rsshub.app/bandisoft/history/bandizip).
|
|
219
|
+
:::
|
|
220
|
+
|
|
221
|
+
<details>
|
|
222
|
+
<summary>More languages</summary>
|
|
223
|
+
|
|
224
|
+
| Language | ID |
|
|
225
|
+
| -------------------- | --- |
|
|
226
|
+
| English | en |
|
|
227
|
+
| 中文(简体) | cn |
|
|
228
|
+
| 中文(繁體) | tw |
|
|
229
|
+
| 日本語 | jp |
|
|
230
|
+
| Русский | ru |
|
|
231
|
+
| Español | es |
|
|
232
|
+
| Français | fr |
|
|
233
|
+
| Deutsch | de |
|
|
234
|
+
| Italiano | it |
|
|
235
|
+
| Slovenčina | sk |
|
|
236
|
+
| Українська | uk |
|
|
237
|
+
| Беларуская | be |
|
|
238
|
+
| Dansk | da |
|
|
239
|
+
| Polski | pl |
|
|
240
|
+
| Português Brasileiro | br |
|
|
241
|
+
| Čeština | cs |
|
|
242
|
+
| Nederlands | nl |
|
|
243
|
+
| Slovenščina | sl |
|
|
244
|
+
| Türkçe | tr |
|
|
245
|
+
| ภาษาไทย | th |
|
|
246
|
+
| Ελληνικά | gr |
|
|
247
|
+
| Oʻzbek | uz |
|
|
248
|
+
| Romanian | ro |
|
|
249
|
+
| 한국어 | kr |
|
|
250
|
+
|
|
251
|
+
</details>
|
|
252
|
+
`,
|
|
253
|
+
categories: ['program-update'],
|
|
254
|
+
features: {
|
|
255
|
+
requireConfig: false,
|
|
256
|
+
requirePuppeteer: false,
|
|
257
|
+
antiCrawler: false,
|
|
258
|
+
supportRadar: true,
|
|
259
|
+
supportBT: false,
|
|
260
|
+
supportPodcast: false,
|
|
261
|
+
supportScihub: false,
|
|
262
|
+
},
|
|
263
|
+
radar: [
|
|
264
|
+
{
|
|
265
|
+
source: ['www.bandisoft.com/:id/history'],
|
|
266
|
+
target: (params) => {
|
|
267
|
+
const id: string = params.id;
|
|
268
|
+
|
|
269
|
+
return `/bandisoft/history${id ? `/${id}` : ''}`;
|
|
270
|
+
},
|
|
271
|
+
},
|
|
272
|
+
],
|
|
273
|
+
view: ViewType.Articles,
|
|
274
|
+
|
|
275
|
+
zh: {
|
|
276
|
+
path: '/history/:id?/:language?',
|
|
277
|
+
name: '更新记录',
|
|
278
|
+
url: 'www.bandisoft.com',
|
|
279
|
+
maintainers: ['nczitzk'],
|
|
280
|
+
handler,
|
|
281
|
+
example: '/bandisoft/history/bandizip',
|
|
282
|
+
parameters: {
|
|
283
|
+
id: {
|
|
284
|
+
description: 'ID, 默认为 `bandizip`,可在对应产品页 URL 中找到',
|
|
285
|
+
options: idOptions,
|
|
286
|
+
},
|
|
287
|
+
language: {
|
|
288
|
+
description: '地区, 默认为 `en`',
|
|
289
|
+
options: languageOptions,
|
|
290
|
+
},
|
|
291
|
+
},
|
|
292
|
+
description: `:::tip
|
|
293
|
+
若订阅 [Bandizip 更新记录](https://cn.bandisoft.com/bandizip/history/),网址为 \`https://cn.bandisoft.com/bandizip/history/\`,请截取 \`cn\` 作为 \`category\` 参数填入,此时目标路由为 [\`/bandisoft/:language?/:id?\`](https://rsshub.app/bandisoft/:language?/:id?)。
|
|
294
|
+
:::
|
|
295
|
+
|
|
296
|
+
<details>
|
|
297
|
+
<summary>更多语言</summary>
|
|
298
|
+
|
|
299
|
+
| Language | ID |
|
|
300
|
+
| -------------------- | --- |
|
|
301
|
+
| English | en |
|
|
302
|
+
| 中文(简体) | cn |
|
|
303
|
+
| 中文(繁體) | tw |
|
|
304
|
+
| 日本語 | jp |
|
|
305
|
+
| Русский | ru |
|
|
306
|
+
| Español | es |
|
|
307
|
+
| Français | fr |
|
|
308
|
+
| Deutsch | de |
|
|
309
|
+
| Italiano | it |
|
|
310
|
+
| Slovenčina | sk |
|
|
311
|
+
| Українська | uk |
|
|
312
|
+
| Беларуская | be |
|
|
313
|
+
| Dansk | da |
|
|
314
|
+
| Polski | pl |
|
|
315
|
+
| Português Brasileiro | br |
|
|
316
|
+
| Čeština | cs |
|
|
317
|
+
| Nederlands | nl |
|
|
318
|
+
| Slovenščina | sl |
|
|
319
|
+
| Türkçe | tr |
|
|
320
|
+
| ภาษาไทย | th |
|
|
321
|
+
| Ελληνικά | gr |
|
|
322
|
+
| Oʻzbek | uz |
|
|
323
|
+
| Romanian | ro |
|
|
324
|
+
| 한국어 | kr |
|
|
325
|
+
|
|
326
|
+
</details>
|
|
327
|
+
`,
|
|
328
|
+
},
|
|
329
|
+
};
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
import { type Data, type DataItem, type Route, ViewType } from '@/types';
|
|
2
|
+
|
|
3
|
+
import { art } from '@/utils/render';
|
|
4
|
+
import cache from '@/utils/cache';
|
|
5
|
+
import ofetch from '@/utils/ofetch';
|
|
6
|
+
import { parseDate } from '@/utils/parse-date';
|
|
7
|
+
import timezone from '@/utils/timezone';
|
|
8
|
+
|
|
9
|
+
import { type CheerioAPI, type Cheerio, load } from 'cheerio';
|
|
10
|
+
import type { Element } from 'domhandler';
|
|
11
|
+
import { type Context } from 'hono';
|
|
12
|
+
import path from 'node:path';
|
|
13
|
+
|
|
14
|
+
export const handler = async (ctx: Context): Promise<Data> => {
|
|
15
|
+
const { id = 'jinritan' } = ctx.req.param();
|
|
16
|
+
const limit: number = Number.parseInt(ctx.req.query('limit') ?? '30', 10);
|
|
17
|
+
|
|
18
|
+
const baseUrl: string = 'http://www.banyuetan.org';
|
|
19
|
+
const targetUrl: string = new URL(`byt/${id}/index.html`, baseUrl).href;
|
|
20
|
+
|
|
21
|
+
const response = await ofetch(targetUrl);
|
|
22
|
+
const $: CheerioAPI = load(response);
|
|
23
|
+
const language = $('html').attr('lang') ?? 'zh';
|
|
24
|
+
|
|
25
|
+
let items: DataItem[] = [];
|
|
26
|
+
|
|
27
|
+
items = $('div.bty_tbtj_list ul.clearFix li')
|
|
28
|
+
.slice(0, limit)
|
|
29
|
+
.toArray()
|
|
30
|
+
.map((el): Element => {
|
|
31
|
+
const $el: Cheerio<Element> = $(el);
|
|
32
|
+
const $aEl: Cheerio<Element> = $el.find('h3 a');
|
|
33
|
+
|
|
34
|
+
const title: string = $aEl.text();
|
|
35
|
+
const image: string | undefined = $el.find('img').attr('src');
|
|
36
|
+
const description: string | undefined = art(path.join(__dirname, 'templates/description.art'), {
|
|
37
|
+
images: image
|
|
38
|
+
? [
|
|
39
|
+
{
|
|
40
|
+
src: image,
|
|
41
|
+
alt: title,
|
|
42
|
+
},
|
|
43
|
+
]
|
|
44
|
+
: undefined,
|
|
45
|
+
intro: $el.find('p').text(),
|
|
46
|
+
});
|
|
47
|
+
const pubDateStr: string | undefined = $el.find('span.tag3').text();
|
|
48
|
+
const linkUrl: string | undefined = $aEl.attr('href');
|
|
49
|
+
const upDatedStr: string | undefined = pubDateStr;
|
|
50
|
+
|
|
51
|
+
const processedItem: DataItem = {
|
|
52
|
+
title,
|
|
53
|
+
description,
|
|
54
|
+
pubDate: pubDateStr ? parseDate(pubDateStr) : undefined,
|
|
55
|
+
link: linkUrl,
|
|
56
|
+
content: {
|
|
57
|
+
html: description,
|
|
58
|
+
text: description,
|
|
59
|
+
},
|
|
60
|
+
image,
|
|
61
|
+
banner: image,
|
|
62
|
+
updated: upDatedStr ? parseDate(upDatedStr) : undefined,
|
|
63
|
+
language,
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
return processedItem;
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
items = await Promise.all(
|
|
70
|
+
items.map((item) => {
|
|
71
|
+
if (!item.link) {
|
|
72
|
+
return item;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return cache.tryGet(item.link, async (): Promise<DataItem> => {
|
|
76
|
+
const detailResponse = await ofetch(item.link);
|
|
77
|
+
const $$: CheerioAPI = load(detailResponse);
|
|
78
|
+
|
|
79
|
+
const title: string = $$('div.detail_tit h1').text();
|
|
80
|
+
const description: string | undefined =
|
|
81
|
+
item.description +
|
|
82
|
+
art(path.join(__dirname, 'templates/description.art'), {
|
|
83
|
+
description: $$('div#detail_content').html(),
|
|
84
|
+
});
|
|
85
|
+
const pubDateStr: string | undefined = $$('meta[property="og:release_date"]').attr('content');
|
|
86
|
+
const categories: string[] = $$('META[name="keywords"]').attr('content')?.split(/,/) ?? [];
|
|
87
|
+
const authorEls: Element[] = [...$$('META[name="author"]').toArray(), ...$$('META[name="source"]').toArray()];
|
|
88
|
+
const authors: DataItem['author'] = authorEls.map((authorEl) => {
|
|
89
|
+
const $$authorEl: Cheerio<Element> = $$(authorEl);
|
|
90
|
+
|
|
91
|
+
return {
|
|
92
|
+
name: $$authorEl.attr('content'),
|
|
93
|
+
url: undefined,
|
|
94
|
+
avatar: undefined,
|
|
95
|
+
};
|
|
96
|
+
});
|
|
97
|
+
const image: string | undefined = $$('meta[property="og:image"]').attr('content');
|
|
98
|
+
const upDatedStr: string | undefined = pubDateStr;
|
|
99
|
+
|
|
100
|
+
const processedItem: DataItem = {
|
|
101
|
+
title,
|
|
102
|
+
description,
|
|
103
|
+
pubDate: pubDateStr ? timezone(parseDate(pubDateStr), +8) : item.pubDate,
|
|
104
|
+
category: categories,
|
|
105
|
+
author: authors,
|
|
106
|
+
content: {
|
|
107
|
+
html: description,
|
|
108
|
+
text: description,
|
|
109
|
+
},
|
|
110
|
+
image,
|
|
111
|
+
banner: image,
|
|
112
|
+
updated: upDatedStr ? timezone(parseDate(upDatedStr), +8) : item.updated,
|
|
113
|
+
language,
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
return {
|
|
117
|
+
...item,
|
|
118
|
+
...processedItem,
|
|
119
|
+
};
|
|
120
|
+
});
|
|
121
|
+
})
|
|
122
|
+
);
|
|
123
|
+
|
|
124
|
+
const title: string = $('title').text();
|
|
125
|
+
|
|
126
|
+
return {
|
|
127
|
+
title,
|
|
128
|
+
description: title,
|
|
129
|
+
link: targetUrl,
|
|
130
|
+
item: items,
|
|
131
|
+
allowEmpty: true,
|
|
132
|
+
image: new URL('static/v1/image/logo.png', baseUrl).href,
|
|
133
|
+
author: title.split(/—/).pop(),
|
|
134
|
+
language,
|
|
135
|
+
id: targetUrl,
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
export const route: Route = {
|
|
140
|
+
path: '/:id?',
|
|
141
|
+
name: '栏目',
|
|
142
|
+
url: 'www.banyuetan.org',
|
|
143
|
+
maintainers: ['nczitzk'],
|
|
144
|
+
handler,
|
|
145
|
+
example: '/banyuetan/jinritan',
|
|
146
|
+
parameters: {
|
|
147
|
+
id: {
|
|
148
|
+
description: '栏目 ID,默认为 `jinritan`,即今日谈,可在对应分类页 URL 中找到',
|
|
149
|
+
options: [
|
|
150
|
+
{
|
|
151
|
+
label: '今日谈',
|
|
152
|
+
value: 'jinritan',
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
label: '时政讲解',
|
|
156
|
+
value: 'shizhengjiangjie',
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
label: '评论',
|
|
160
|
+
value: 'banyuetanpinglun',
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
label: '基层治理',
|
|
164
|
+
value: 'jicengzhili',
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
label: '文化',
|
|
168
|
+
value: 'wenhua',
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
label: '教育',
|
|
172
|
+
value: 'jiaoyu',
|
|
173
|
+
},
|
|
174
|
+
],
|
|
175
|
+
},
|
|
176
|
+
},
|
|
177
|
+
description: `:::tip
|
|
178
|
+
订阅 [今日谈](http://www.banyuetan.org/byt/jinritan/),其源网址为 \`http://www.banyuetan.org/byt/jinritan/\`,请参考该 URL 指定部分构成参数,此时路由为 [\`/banyuetan/jinritan\`](https://rsshub.app/banyuetan/jinritan)。
|
|
179
|
+
:::
|
|
180
|
+
|
|
181
|
+
| 栏目 | ID |
|
|
182
|
+
| -------------------------------------------------------------------- | ----------------------------------------------------------------- |
|
|
183
|
+
| [今日谈](http://www.banyuetan.org/byt/jinritan/index.html) | [jinritan](https://rsshub.app/banyuetan/jinritan) |
|
|
184
|
+
| [时政讲解](http://www.banyuetan.org/byt/shizhengjiangjie/index.html) | [shizhengjiangjie](https://rsshub.app/banyuetan/shizhengjiangjie) |
|
|
185
|
+
| [评论](http://www.banyuetan.org/byt/banyuetanpinglun/index.html) | [banyuetanpinglun](https://rsshub.app/banyuetan/banyuetanpinglun) |
|
|
186
|
+
| [基层治理](http://www.banyuetan.org/byt/jicengzhili/index.html) | [jicengzhili](https://rsshub.app/banyuetan/jicengzhili) |
|
|
187
|
+
| [文化](http://www.banyuetan.org/byt/wenhua/index.html) | [wenhua](https://rsshub.app/banyuetan/wenhua) |
|
|
188
|
+
| [教育](http://www.banyuetan.org/byt/jiaoyu/index.html) | [jiaoyu](https://rsshub.app/banyuetan/jiaoyu) |
|
|
189
|
+
|
|
190
|
+
`,
|
|
191
|
+
categories: ['traditional-media'],
|
|
192
|
+
features: {
|
|
193
|
+
requireConfig: false,
|
|
194
|
+
requirePuppeteer: false,
|
|
195
|
+
antiCrawler: false,
|
|
196
|
+
supportRadar: true,
|
|
197
|
+
supportBT: false,
|
|
198
|
+
supportPodcast: false,
|
|
199
|
+
supportScihub: false,
|
|
200
|
+
},
|
|
201
|
+
radar: [
|
|
202
|
+
{
|
|
203
|
+
source: ['www.banyuetan.org/byt/:id'],
|
|
204
|
+
target: '/:id',
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
title: '今日谈',
|
|
208
|
+
source: ['www.banyuetan.org/byt/jinritan/index.html'],
|
|
209
|
+
target: '/jinritan',
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
title: '时政讲解',
|
|
213
|
+
source: ['www.banyuetan.org/byt/shizhengjiangjie/index.html'],
|
|
214
|
+
target: '/shizhengjiangjie',
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
title: '评论',
|
|
218
|
+
source: ['www.banyuetan.org/byt/banyuetanpinglun/index.html'],
|
|
219
|
+
target: '/banyuetanpinglun',
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
title: '基层治理',
|
|
223
|
+
source: ['www.banyuetan.org/byt/jicengzhili/index.html'],
|
|
224
|
+
target: '/jicengzhili',
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
title: '文化',
|
|
228
|
+
source: ['www.banyuetan.org/byt/wenhua/index.html'],
|
|
229
|
+
target: '/wenhua',
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
title: '教育',
|
|
233
|
+
source: ['www.banyuetan.org/byt/jiaoyu/index.html'],
|
|
234
|
+
target: '/jiaoyu',
|
|
235
|
+
},
|
|
236
|
+
],
|
|
237
|
+
view: ViewType.Articles,
|
|
238
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{{ if images }}
|
|
2
|
+
{{ each images image }}
|
|
3
|
+
{{ if image?.src }}
|
|
4
|
+
<figure>
|
|
5
|
+
<img
|
|
6
|
+
{{ if image.alt }}
|
|
7
|
+
alt="{{ image.alt }}"
|
|
8
|
+
{{ /if }}
|
|
9
|
+
src="{{ image.src }}">
|
|
10
|
+
</figure>
|
|
11
|
+
{{ /if }}
|
|
12
|
+
{{ /each }}
|
|
13
|
+
{{ /if }}
|
|
14
|
+
|
|
15
|
+
{{ if intro }}
|
|
16
|
+
<blockquote>{{ intro }}</blockquote>
|
|
17
|
+
{{ /if }}
|
|
18
|
+
|
|
19
|
+
{{ if description }}
|
|
20
|
+
{{@ description }}
|
|
21
|
+
{{ /if }}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { Route } from '@/types';
|
|
2
|
+
import cache from '@/utils/cache';
|
|
3
|
+
import { load } from 'cheerio';
|
|
4
|
+
import ofetch from '@/utils/ofetch';
|
|
5
|
+
import { parseDate } from '@/utils/parse-date';
|
|
6
|
+
|
|
7
|
+
export const route: Route = {
|
|
8
|
+
name: 'Learning English',
|
|
9
|
+
maintainers: ['Blank0120'],
|
|
10
|
+
categories: ['study'],
|
|
11
|
+
handler,
|
|
12
|
+
path: '/learningenglish/:channel?',
|
|
13
|
+
example: '/bbc/learningenglish/take-away-english',
|
|
14
|
+
parameters: {
|
|
15
|
+
channel: 'channel, default to `take-away-english`',
|
|
16
|
+
},
|
|
17
|
+
description: `| 随身英语 | 地道英语 | 媒体英语 | 英语大破解 | 一分钟英语 |
|
|
18
|
+
| -------- | -------- | -------- | -------- | -------- |
|
|
19
|
+
| take-away-english | authentic-real-english | media-english | lingohack | english-in-a-minute |
|
|
20
|
+
|
|
21
|
+
| 短语动词 | 今日短语 | 你问我答 | 白领英语 | 亲子英语故事 |
|
|
22
|
+
| -------- | -------- | -------- | -------- | -------- |
|
|
23
|
+
| phrasal-verbs | todays-phrase | q-and-a | english-at-work | storytellers |`,
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
async function handler(ctx) {
|
|
27
|
+
// set targetURL
|
|
28
|
+
const { channel = 'take-away-english' } = ctx.req.param();
|
|
29
|
+
|
|
30
|
+
const rootURL = 'https://www.bbc.co.uk';
|
|
31
|
+
const targerURL = `${rootURL}/learningenglish/chinese/features/${channel}`;
|
|
32
|
+
|
|
33
|
+
const response = await ofetch(targerURL, { parseResponse: (txt) => txt });
|
|
34
|
+
const $ = load(response);
|
|
35
|
+
|
|
36
|
+
// get top article links
|
|
37
|
+
const firstItem = {
|
|
38
|
+
title: $('[data-widget-index=4]').find('h2').text(),
|
|
39
|
+
link: `${rootURL}${$('[data-widget-index=4]').find('h2 a').attr('href')}`,
|
|
40
|
+
pubDate: parseDate($('[data-widget-index=4]').find('.details h3').text()),
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
// get rest ul article links
|
|
44
|
+
const restItems = $('.threecol li')
|
|
45
|
+
.toArray()
|
|
46
|
+
.slice(0, 10)
|
|
47
|
+
.map((article) => {
|
|
48
|
+
const $article = load(article);
|
|
49
|
+
|
|
50
|
+
return {
|
|
51
|
+
title: $article('h2').text(),
|
|
52
|
+
link: `${rootURL}${$article('h2 a').attr('href')}`,
|
|
53
|
+
pubDate: parseDate($article('.details h3').text()),
|
|
54
|
+
};
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
// try get article content detail
|
|
58
|
+
const items = await Promise.all(
|
|
59
|
+
[firstItem, ...restItems].map((item) =>
|
|
60
|
+
cache.tryGet(item.link, async () => {
|
|
61
|
+
const detailResponse = await ofetch(item.link, { parseResponse: (txt) => txt });
|
|
62
|
+
|
|
63
|
+
const $content = load(detailResponse);
|
|
64
|
+
|
|
65
|
+
item.description = $content('.widget-richtext').html();
|
|
66
|
+
return item;
|
|
67
|
+
})
|
|
68
|
+
)
|
|
69
|
+
);
|
|
70
|
+
|
|
71
|
+
return {
|
|
72
|
+
title: `Learningenglish-${channel}-BBC`,
|
|
73
|
+
link: targerURL,
|
|
74
|
+
item: items,
|
|
75
|
+
};
|
|
76
|
+
}
|
|
@@ -9,7 +9,7 @@ import { getAppreciatedQuery, getProfileProjectsAndSelectionsQuery, getProjectPa
|
|
|
9
9
|
|
|
10
10
|
export const route: Route = {
|
|
11
11
|
path: '/:user/:type?',
|
|
12
|
-
categories: ['design'
|
|
12
|
+
categories: ['design'],
|
|
13
13
|
view: ViewType.Pictures,
|
|
14
14
|
example: '/behance/mishapetrick',
|
|
15
15
|
parameters: {
|