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
package/lib/routes/cara/likes.ts
CHANGED
|
@@ -6,7 +6,7 @@ import cache from '@/utils/cache';
|
|
|
6
6
|
|
|
7
7
|
export const route: Route = {
|
|
8
8
|
path: ['/portfolio/:user'],
|
|
9
|
-
categories: ['social-media'
|
|
9
|
+
categories: ['social-media'],
|
|
10
10
|
example: '/cara/portfolio/fengz',
|
|
11
11
|
parameters: { user: 'username' },
|
|
12
12
|
name: 'Portfolio',
|
|
@@ -8,7 +8,7 @@ import path from 'node:path';
|
|
|
8
8
|
|
|
9
9
|
export const route: Route = {
|
|
10
10
|
path: ['/timeline/:user'],
|
|
11
|
-
categories: ['social-media'
|
|
11
|
+
categories: ['social-media'],
|
|
12
12
|
example: '/cara/timeline/fengz',
|
|
13
13
|
parameters: { user: 'username' },
|
|
14
14
|
name: 'Timeline',
|
|
@@ -9,7 +9,7 @@ const headers = { 'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Ma
|
|
|
9
9
|
|
|
10
10
|
export const route: Route = {
|
|
11
11
|
path: '/:userid',
|
|
12
|
-
categories: ['social-media'
|
|
12
|
+
categories: ['social-media'],
|
|
13
13
|
view: ViewType.Audios,
|
|
14
14
|
example: '/changba/skp6hhF59n48R-UpqO3izw',
|
|
15
15
|
parameters: { userid: '用户ID, 可在对应分享页面的 URL 中找到' },
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { Route } from '@/types';
|
|
2
|
+
import type { Context } from 'hono';
|
|
3
|
+
|
|
4
|
+
import cache from '@/utils/cache';
|
|
5
|
+
import ofetch from '@/utils/ofetch';
|
|
6
|
+
import * as cheerio from 'cheerio';
|
|
7
|
+
import { parseDate } from '@/utils/parse-date';
|
|
8
|
+
import timezone from '@/utils/timezone';
|
|
9
|
+
|
|
10
|
+
const handler = async (ctx: Context) => {
|
|
11
|
+
const { catId = '1' } = ctx.req.param();
|
|
12
|
+
const url = `https://www.chiphell.com/portal.php?mod=list&catid=${catId}`;
|
|
13
|
+
|
|
14
|
+
const response = await ofetch(url);
|
|
15
|
+
const $ = cheerio.load(response);
|
|
16
|
+
|
|
17
|
+
const list = $('dl.cl')
|
|
18
|
+
.toArray()
|
|
19
|
+
.map((item) => {
|
|
20
|
+
const $item = $(item);
|
|
21
|
+
const a = $item.find('a.xi2');
|
|
22
|
+
|
|
23
|
+
return {
|
|
24
|
+
title: a.text(),
|
|
25
|
+
link: `https://www.chiphell.com/${a.attr('href')}`,
|
|
26
|
+
category: [$item.find('dd label').text()],
|
|
27
|
+
pubDate: timezone(parseDate($item.find('span.xg1').text()), +8),
|
|
28
|
+
};
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
const items = await Promise.all(
|
|
32
|
+
list.map((item) =>
|
|
33
|
+
cache.tryGet(item.link, async () => {
|
|
34
|
+
const response = await ofetch(item.link);
|
|
35
|
+
const $ = cheerio.load(response);
|
|
36
|
+
|
|
37
|
+
$('#article_content div br').parent().remove();
|
|
38
|
+
let description = $('#article_content').html();
|
|
39
|
+
|
|
40
|
+
if ($('.pg').length) {
|
|
41
|
+
const urls = $('.pg a')
|
|
42
|
+
.toArray()
|
|
43
|
+
.map((item) => {
|
|
44
|
+
const $item = $(item);
|
|
45
|
+
return `https://www.chiphell.com/${$item.attr('href')}`;
|
|
46
|
+
})
|
|
47
|
+
.slice(0, -1);
|
|
48
|
+
const responses = await Promise.all(urls.map((url) => ofetch(url)));
|
|
49
|
+
const $pages = responses.map((item) => cheerio.load(item));
|
|
50
|
+
const contents = $pages.map(($item) => {
|
|
51
|
+
$item('#article_content div br').parent().remove();
|
|
52
|
+
return $item('#article_content').html();
|
|
53
|
+
});
|
|
54
|
+
description = [description, ...contents].join('');
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
item.description = description;
|
|
58
|
+
|
|
59
|
+
return item;
|
|
60
|
+
})
|
|
61
|
+
)
|
|
62
|
+
);
|
|
63
|
+
|
|
64
|
+
return {
|
|
65
|
+
title: $('head title').text(),
|
|
66
|
+
description: $('head meta[name="description"]').attr('content'),
|
|
67
|
+
link: url,
|
|
68
|
+
item: items,
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
export const route: Route = {
|
|
73
|
+
path: '/portal/:catId?',
|
|
74
|
+
name: '分类',
|
|
75
|
+
categories: ['bbs'],
|
|
76
|
+
example: '/chiphell/portal/1',
|
|
77
|
+
parameters: {
|
|
78
|
+
catId: '分类 ID,可在 URL 中找到,默认为 1',
|
|
79
|
+
},
|
|
80
|
+
maintainers: ['tylinux'],
|
|
81
|
+
handler,
|
|
82
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Namespace } from '@/types';
|
|
2
|
+
|
|
3
|
+
export const namespace: Namespace = {
|
|
4
|
+
name: 'National Museum Of China',
|
|
5
|
+
url: 'www.chnmuseum.cn',
|
|
6
|
+
description: '中国国家博物馆(National Museum of China)位于北京市中心天安门广场东侧,东长安街南侧,与人民大会堂东西相对称,是一座系统展示中华民族文化历史的综合性博物馆,也是世界上最大的博物馆之一。',
|
|
7
|
+
zh: {
|
|
8
|
+
name: '中国国家博物馆',
|
|
9
|
+
},
|
|
10
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { Route } from '@/types';
|
|
2
|
+
import ofetch from '@/utils/ofetch';
|
|
3
|
+
import { load } from 'cheerio';
|
|
4
|
+
import { parseDate } from '@/utils/parse-date';
|
|
5
|
+
import cache from '@/utils/cache';
|
|
6
|
+
import timezone from '@/utils/timezone';
|
|
7
|
+
|
|
8
|
+
export const route: Route = {
|
|
9
|
+
path: '/zx/xingnew',
|
|
10
|
+
categories: ['travel'],
|
|
11
|
+
example: '/zx/xingnew',
|
|
12
|
+
parameters: {},
|
|
13
|
+
features: {
|
|
14
|
+
requireConfig: false,
|
|
15
|
+
requirePuppeteer: false,
|
|
16
|
+
antiCrawler: false,
|
|
17
|
+
supportBT: false,
|
|
18
|
+
supportPodcast: false,
|
|
19
|
+
supportScihub: false,
|
|
20
|
+
},
|
|
21
|
+
radar: [
|
|
22
|
+
{
|
|
23
|
+
source: ['chnmuseum.cn/zx/xingnew'],
|
|
24
|
+
target: '/zx/xingnew',
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
name: '资讯要闻',
|
|
28
|
+
maintainers: ['ShabbyWhineYear'],
|
|
29
|
+
handler: async () => {
|
|
30
|
+
const response = await ofetch('https://www.chnmuseum.cn/zx/xingnew/');
|
|
31
|
+
const $ = load(response);
|
|
32
|
+
|
|
33
|
+
const list = $('ul.cj_xushuliebao_list li')
|
|
34
|
+
.toArray()
|
|
35
|
+
.map((item) => {
|
|
36
|
+
item = $(item);
|
|
37
|
+
const a = item.find('a');
|
|
38
|
+
const dateText = item.find('span.date').text();
|
|
39
|
+
|
|
40
|
+
return {
|
|
41
|
+
title: a.attr('title') || a.text(),
|
|
42
|
+
link: new URL(a.attr('href'), 'https://www.chnmuseum.cn/zx/xingnew/').href,
|
|
43
|
+
pubDate: timezone(parseDate(dateText, 'YYYY/MM/DD'), +8),
|
|
44
|
+
// description: a.attr('title') || a.text(),
|
|
45
|
+
};
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
const items = await Promise.all(
|
|
49
|
+
list.map((item) =>
|
|
50
|
+
cache.tryGet(item.link, async () => {
|
|
51
|
+
const response = await ofetch(item.link);
|
|
52
|
+
const $ = load(response);
|
|
53
|
+
|
|
54
|
+
// 选择类名为“comment-body”的第一个元素
|
|
55
|
+
item.description = $('.cj_xw_cong').first().html();
|
|
56
|
+
|
|
57
|
+
// 上面每个列表项的每个属性都在此重用,
|
|
58
|
+
// 并增加了一个新属性“description”
|
|
59
|
+
return item;
|
|
60
|
+
})
|
|
61
|
+
)
|
|
62
|
+
);
|
|
63
|
+
|
|
64
|
+
return {
|
|
65
|
+
// 源标题
|
|
66
|
+
title: '中国国家博物馆资讯要闻',
|
|
67
|
+
// 源链接
|
|
68
|
+
link: 'https://www.chnmuseum.cn/zx/xingnew/',
|
|
69
|
+
// 源文章
|
|
70
|
+
item: items,
|
|
71
|
+
};
|
|
72
|
+
},
|
|
73
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { Route } from '@/types';
|
|
2
|
+
import ofetch from '@/utils/ofetch';
|
|
3
|
+
import { load } from 'cheerio';
|
|
4
|
+
|
|
5
|
+
export const route: Route = {
|
|
6
|
+
path: '/zx/xwzt',
|
|
7
|
+
categories: ['travel'],
|
|
8
|
+
example: '/zx/xwzt',
|
|
9
|
+
parameters: {},
|
|
10
|
+
features: {
|
|
11
|
+
requireConfig: false,
|
|
12
|
+
requirePuppeteer: false,
|
|
13
|
+
antiCrawler: false,
|
|
14
|
+
supportBT: false,
|
|
15
|
+
supportPodcast: false,
|
|
16
|
+
supportScihub: false,
|
|
17
|
+
},
|
|
18
|
+
radar: [
|
|
19
|
+
{
|
|
20
|
+
source: ['chnmuseum.cn/zx/xwzt'],
|
|
21
|
+
target: '/zx/xwzt',
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
name: '资讯专题',
|
|
25
|
+
maintainers: ['ShabbyWhineYear'],
|
|
26
|
+
handler: async () => {
|
|
27
|
+
const response = await ofetch('https://www.chnmuseum.cn/zx/xwzt/');
|
|
28
|
+
const $ = load(response);
|
|
29
|
+
|
|
30
|
+
const items = $('ul.cj_hd_zhanh li')
|
|
31
|
+
.toArray()
|
|
32
|
+
.map((item) => {
|
|
33
|
+
item = $(item);
|
|
34
|
+
const a = item.find('div.cj_hd_biaoti a').first();
|
|
35
|
+
|
|
36
|
+
return {
|
|
37
|
+
title: a.attr('title') || a.text(),
|
|
38
|
+
link: new URL(a.attr('href'), 'https://www.chnmuseum.cn').href,
|
|
39
|
+
};
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
// const items = await Promise.all(
|
|
43
|
+
// list.map((item) =>
|
|
44
|
+
// cache.tryGet(item.link, async () => {
|
|
45
|
+
// const response = await ofetch(item.link);
|
|
46
|
+
// const $ = load(response);
|
|
47
|
+
//
|
|
48
|
+
// // 选择类名为“comment-body”的第一个元素
|
|
49
|
+
// item.description = $('.cj_xw_cong').first().html();
|
|
50
|
+
//
|
|
51
|
+
// // 上面每个列表项的每个属性都在此重用,
|
|
52
|
+
// // 并增加了一个新属性“description”
|
|
53
|
+
// return item;
|
|
54
|
+
// })
|
|
55
|
+
// )
|
|
56
|
+
// );
|
|
57
|
+
|
|
58
|
+
return {
|
|
59
|
+
// 源标题
|
|
60
|
+
title: '中国国家博物馆资讯专题',
|
|
61
|
+
// 源链接
|
|
62
|
+
link: 'https://www.chnmuseum.cn/zx/xwzt/',
|
|
63
|
+
// 源文章
|
|
64
|
+
item: items,
|
|
65
|
+
};
|
|
66
|
+
},
|
|
67
|
+
};
|
|
@@ -0,0 +1,122 @@
|
|
|
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
|
+
export const handler = async (ctx: Context): Promise<Data> => {
|
|
11
|
+
const { id } = ctx.req.param();
|
|
12
|
+
|
|
13
|
+
const baseUrl: string = 'https://community.chocolatey.org';
|
|
14
|
+
const targetUrl: string = new URL(`packages/${id}`, baseUrl).href;
|
|
15
|
+
|
|
16
|
+
const response = await ofetch(targetUrl);
|
|
17
|
+
const $: CheerioAPI = load(response);
|
|
18
|
+
const language = $('html').attr('lang') ?? 'en';
|
|
19
|
+
|
|
20
|
+
const title: string = $('meta[property="og:title"]').attr('content');
|
|
21
|
+
const description: string | undefined = $('div#description').html();
|
|
22
|
+
const pubDateStr: string | undefined = $('h3.mt-0.mb-3').last().text();
|
|
23
|
+
const categoryEls: Element[] = $('a[data-package-tag]').toArray();
|
|
24
|
+
const categories: string[] = [...new Set(categoryEls.map((el) => $(el).text()).filter(Boolean))];
|
|
25
|
+
const authorEls: Element[] = $('img[alt="gravatar"]').toArray();
|
|
26
|
+
const authors: DataItem['author'] = authorEls.map((authorEl) => {
|
|
27
|
+
const $authorEl: Cheerio<Element> = $(authorEl).parent();
|
|
28
|
+
|
|
29
|
+
return {
|
|
30
|
+
name: $authorEl.find('span').text(),
|
|
31
|
+
url: $authorEl.attr('href') ? new URL($authorEl.attr('href') as string, baseUrl).href : undefined,
|
|
32
|
+
avatar: $authorEl.attr('src'),
|
|
33
|
+
};
|
|
34
|
+
});
|
|
35
|
+
const guid: string = `chocolatey-${title}`;
|
|
36
|
+
const image: string | undefined = $('div.package-logo img').attr('src') ? new URL($('div.package-logo img').attr('src') as string, baseUrl).href : undefined;
|
|
37
|
+
const upDatedStr: string | undefined = pubDateStr;
|
|
38
|
+
|
|
39
|
+
const processedItem: DataItem = {
|
|
40
|
+
title,
|
|
41
|
+
description,
|
|
42
|
+
pubDate: pubDateStr ? parseDate(pubDateStr) : undefined,
|
|
43
|
+
link: targetUrl,
|
|
44
|
+
category: categories,
|
|
45
|
+
author: authors,
|
|
46
|
+
guid,
|
|
47
|
+
id: guid,
|
|
48
|
+
content: {
|
|
49
|
+
html: description,
|
|
50
|
+
text: description,
|
|
51
|
+
},
|
|
52
|
+
image,
|
|
53
|
+
banner: image,
|
|
54
|
+
updated: upDatedStr ? parseDate(upDatedStr) : undefined,
|
|
55
|
+
language,
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
const items: DataItem[] = [processedItem];
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
title: $('title').first().text(),
|
|
62
|
+
description: $('meta[property="og:description"]').attr('content'),
|
|
63
|
+
link: targetUrl,
|
|
64
|
+
item: items,
|
|
65
|
+
allowEmpty: true,
|
|
66
|
+
image: $('meta[property="og:image"]').attr('content'),
|
|
67
|
+
author: $('meta[property="og:site_name"]').attr('content'),
|
|
68
|
+
language,
|
|
69
|
+
id: $('meta[property="og:url"]').attr('content'),
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
export const route: Route = {
|
|
74
|
+
path: '/packages/:id',
|
|
75
|
+
name: 'Package',
|
|
76
|
+
url: 'community.chocolatey.org',
|
|
77
|
+
maintainers: ['nczitzk'],
|
|
78
|
+
handler,
|
|
79
|
+
example: '/chocolatey/packages/microsoft-edge',
|
|
80
|
+
parameters: {
|
|
81
|
+
id: {
|
|
82
|
+
description: 'Package ID',
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
description: undefined,
|
|
86
|
+
categories: ['program-update'],
|
|
87
|
+
features: {
|
|
88
|
+
requireConfig: false,
|
|
89
|
+
requirePuppeteer: false,
|
|
90
|
+
antiCrawler: false,
|
|
91
|
+
supportRadar: true,
|
|
92
|
+
supportBT: false,
|
|
93
|
+
supportPodcast: false,
|
|
94
|
+
supportScihub: false,
|
|
95
|
+
},
|
|
96
|
+
radar: [
|
|
97
|
+
{
|
|
98
|
+
source: ['community.chocolatey.org/packages'],
|
|
99
|
+
target: (params) => {
|
|
100
|
+
const id: string = params.id;
|
|
101
|
+
|
|
102
|
+
return `/chocolatey/package${id ? `/${id}` : ''}`;
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
],
|
|
106
|
+
view: ViewType.Notifications,
|
|
107
|
+
|
|
108
|
+
zh: {
|
|
109
|
+
path: '/packages/:id',
|
|
110
|
+
name: '程序包',
|
|
111
|
+
url: 'community.chocolatey.org',
|
|
112
|
+
maintainers: ['nczitzk'],
|
|
113
|
+
handler,
|
|
114
|
+
example: '/chocolatey/package/microsoft-edge',
|
|
115
|
+
parameters: {
|
|
116
|
+
id: {
|
|
117
|
+
description: '程序包 ID',
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
description: undefined,
|
|
121
|
+
},
|
|
122
|
+
};
|
|
@@ -4,7 +4,7 @@ import { parseDate } from '@/utils/parse-date';
|
|
|
4
4
|
|
|
5
5
|
export const route: Route = {
|
|
6
6
|
path: '/characters',
|
|
7
|
-
categories: ['new-media'
|
|
7
|
+
categories: ['new-media'],
|
|
8
8
|
example: '/chub/characters',
|
|
9
9
|
name: 'Characters',
|
|
10
10
|
maintainers: ['flameleaf'],
|
|
@@ -13,11 +13,11 @@ export const route: Route = {
|
|
|
13
13
|
|
|
14
14
|
async function handler() {
|
|
15
15
|
const hostURL = 'https://www.chub.ai/characters';
|
|
16
|
-
const apiURL = 'https://api.chub.ai/
|
|
17
|
-
const data = await ofetch(apiURL, {
|
|
16
|
+
const apiURL = 'https://api.chub.ai/search';
|
|
17
|
+
const { data } = await ofetch(apiURL, {
|
|
18
18
|
headers: { Accept: 'application/json' },
|
|
19
19
|
query: {
|
|
20
|
-
|
|
20
|
+
search: '',
|
|
21
21
|
first: 200,
|
|
22
22
|
page: 1,
|
|
23
23
|
sort: 'last_activity_at',
|
|
@@ -31,8 +31,6 @@ async function handler() {
|
|
|
31
31
|
require_alternate_greetings: 'false',
|
|
32
32
|
require_custom_prompt: 'false',
|
|
33
33
|
exclude_mine: 'false',
|
|
34
|
-
venus: 'true',
|
|
35
|
-
chub: 'true',
|
|
36
34
|
min_tokens: 50,
|
|
37
35
|
require_expressions: 'false',
|
|
38
36
|
require_lore: 'false',
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { Route } from '@/types';
|
|
2
|
+
import ofetch from '@/utils/ofetch';
|
|
3
|
+
import { load } from 'cheerio';
|
|
4
|
+
import { parseDate } from '@/utils/parse-date';
|
|
5
|
+
import timezone from '@/utils/timezone';
|
|
6
|
+
|
|
7
|
+
export const route: Route = {
|
|
8
|
+
path: '/report/list/:report?',
|
|
9
|
+
categories: ['finance'],
|
|
10
|
+
example: '/cih-index/report/list/p1-oaddtime-ddesc',
|
|
11
|
+
parameters: { report: '报告 id,可在 URL 中找到,留空为 `p1-oaddtime-ddesc`' },
|
|
12
|
+
features: {
|
|
13
|
+
requireConfig: false,
|
|
14
|
+
requirePuppeteer: false,
|
|
15
|
+
antiCrawler: false,
|
|
16
|
+
supportBT: false,
|
|
17
|
+
supportPodcast: false,
|
|
18
|
+
supportScihub: false,
|
|
19
|
+
},
|
|
20
|
+
name: '报告',
|
|
21
|
+
maintainers: ['TonyRL'],
|
|
22
|
+
handler,
|
|
23
|
+
url: 'www.cih-index.com/report/list/p1-oaddtime-ddesc',
|
|
24
|
+
radar: [
|
|
25
|
+
{
|
|
26
|
+
source: ['www.cih-index.com/report/list/:report'],
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
async function handler(ctx) {
|
|
32
|
+
const { report = 'p1-oaddtime-ddesc' } = ctx.req.param();
|
|
33
|
+
|
|
34
|
+
const baseUrl = 'https://www.cih-index.com';
|
|
35
|
+
const currentUrl = `${baseUrl}/report/list/${report}`;
|
|
36
|
+
const response = await ofetch(currentUrl);
|
|
37
|
+
|
|
38
|
+
const $ = load(response);
|
|
39
|
+
const initialState = JSON.parse(
|
|
40
|
+
$('script:contains("window.__INITIAL_STATE__")')
|
|
41
|
+
.text()
|
|
42
|
+
.match(/window\.__INITIAL_STATE__\s*=\s*({.*?});/)?.[1] || '{}'
|
|
43
|
+
);
|
|
44
|
+
const { dataResult, indNavLists, secondNameFilter, tagList, param } = initialState.data;
|
|
45
|
+
|
|
46
|
+
const items = dataResult.reportInfoDtoList.map((info) => {
|
|
47
|
+
const pageCount = info.isCharging === 1 ? 3 : info.pageCount;
|
|
48
|
+
let images = '';
|
|
49
|
+
for (let i = 1; i <= pageCount; i++) {
|
|
50
|
+
images += `<img src="${baseUrl}/report/bp-creis-report-detail/getImg?id=${info.reportId}&pageNum=${i}"><br>`;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
title: info.reportTitle,
|
|
54
|
+
link: `${baseUrl}/report/detail/${info.reportId}.html`,
|
|
55
|
+
pubDate: timezone(parseDate(info.addTime), +8),
|
|
56
|
+
category: [...new Set([...info.reportClassTagDtoList.map((t) => t.tag), ...(info.keywordList || [])])],
|
|
57
|
+
description: `${info.context}<br>${images}`,
|
|
58
|
+
image: `${info.coverFigureUrl}/200`,
|
|
59
|
+
};
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
const category = param.firstId ? indNavLists.find((item) => item.classId === param.firstId)?.className + ' - ' : '';
|
|
63
|
+
const subCategory = param.secondId ? secondNameFilter.find((item) => item.classId === param.secondId)?.className + ' - ' : '';
|
|
64
|
+
const tag = param.tagId ? tagList.find((item) => item.tagId === Number.parseInt(param.tagId))?.tag + ' - ' : '';
|
|
65
|
+
|
|
66
|
+
return {
|
|
67
|
+
title: `${category}${subCategory}${tag}中指报告`,
|
|
68
|
+
description: $('meta[name="description"]').attr('content'),
|
|
69
|
+
image: `${baseUrl}/favicon.ico`,
|
|
70
|
+
lang: 'zh-CN',
|
|
71
|
+
link: currentUrl,
|
|
72
|
+
item: items,
|
|
73
|
+
};
|
|
74
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { Route } from '@/types';
|
|
2
|
+
import cache from '@/utils/cache';
|
|
3
|
+
import ofetch from '@/utils/ofetch';
|
|
4
|
+
import { parseDate } from '@/utils/parse-date';
|
|
5
|
+
|
|
6
|
+
export const route: Route = {
|
|
7
|
+
path: '/user/:username/articles',
|
|
8
|
+
categories: ['program-update'],
|
|
9
|
+
example: '/civitai/user/Chenkin/articles',
|
|
10
|
+
parameters: { username: 'Username' },
|
|
11
|
+
radar: [
|
|
12
|
+
{
|
|
13
|
+
source: ['civitai.com/user/:username', 'civitai.com/user/:username/articles'],
|
|
14
|
+
},
|
|
15
|
+
],
|
|
16
|
+
name: 'User Article',
|
|
17
|
+
maintainers: ['TonyRL'],
|
|
18
|
+
handler,
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
async function handler(ctx) {
|
|
22
|
+
const { username } = ctx.req.param();
|
|
23
|
+
|
|
24
|
+
const userProfile = await cache.tryGet(`civitai:userProfile:${username}`, async () => {
|
|
25
|
+
const response = await ofetch('https://civitai.com/api/trpc/userProfile.get', {
|
|
26
|
+
query: {
|
|
27
|
+
input: JSON.stringify({ json: { username } }),
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
return response.result.data.json;
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
const article = await ofetch('https://civitai.com/api/trpc/article.getInfinite', {
|
|
34
|
+
query: {
|
|
35
|
+
input: JSON.stringify({
|
|
36
|
+
json: {
|
|
37
|
+
period: 'AllTime',
|
|
38
|
+
periodMode: 'published',
|
|
39
|
+
sort: 'Newest',
|
|
40
|
+
username,
|
|
41
|
+
includeDrafts: false,
|
|
42
|
+
pending: true,
|
|
43
|
+
browsingLevel: 1,
|
|
44
|
+
excludedTagIds: [415792, 426772, 5188, 5249, 130818, 130820, 133182],
|
|
45
|
+
cursor: null,
|
|
46
|
+
},
|
|
47
|
+
meta: { values: { cursor: ['undefined'] } },
|
|
48
|
+
}),
|
|
49
|
+
},
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
if (!article.result.data.json.items.length) {
|
|
53
|
+
throw new Error('This user has no articles.');
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const list = article.result.data.json.items.map((item) => ({
|
|
57
|
+
title: item.title,
|
|
58
|
+
link: `https://civitai.com/articles/${item.id}`,
|
|
59
|
+
id: item.id,
|
|
60
|
+
pubDate: parseDate(item.publishedAt),
|
|
61
|
+
updated: parseDate(item.publishedAt),
|
|
62
|
+
author: item.user?.username,
|
|
63
|
+
category: item.tags.map((tag) => tag.name),
|
|
64
|
+
image: `https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/${item.coverImage.url}/${item.coverImage.name}`,
|
|
65
|
+
}));
|
|
66
|
+
|
|
67
|
+
const items = await Promise.all(
|
|
68
|
+
list.map((item) =>
|
|
69
|
+
cache.tryGet(item.link, async () => {
|
|
70
|
+
const response = await ofetch('https://civitai.com/api/trpc/article.getById', {
|
|
71
|
+
query: {
|
|
72
|
+
input: JSON.stringify({ json: { id: item.id } }),
|
|
73
|
+
},
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
item.description = response.result.data.json.content;
|
|
77
|
+
|
|
78
|
+
return item;
|
|
79
|
+
})
|
|
80
|
+
)
|
|
81
|
+
);
|
|
82
|
+
|
|
83
|
+
return {
|
|
84
|
+
title: `${username} Creator Profile | Civitai`,
|
|
85
|
+
description: userProfile.profile.message.replaceAll('\n', ' ') || userProfile.profile.bio,
|
|
86
|
+
link: `https://civitai.com/user/${username}/articles`,
|
|
87
|
+
image: userProfile.image,
|
|
88
|
+
item: items,
|
|
89
|
+
};
|
|
90
|
+
}
|
package/lib/routes/cmde/index.ts
CHANGED
|
@@ -17,7 +17,7 @@ export const route: Route = {
|
|
|
17
17
|
async function handler(ctx) {
|
|
18
18
|
const cate = ctx.req.param('cate') ?? 'xwdt/zxyw';
|
|
19
19
|
const url = `${rootURL}/${cate}/`;
|
|
20
|
-
const browser = await puppeteer(
|
|
20
|
+
const browser = await puppeteer();
|
|
21
21
|
const data = await cache.tryGet(url, async () => {
|
|
22
22
|
const page = await browser.newPage();
|
|
23
23
|
await page.setRequestInterception(true);
|