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,200 @@
|
|
|
1
|
+
import { type Data, type DataItem, type Route, ViewType } from '@/types';
|
|
2
|
+
|
|
3
|
+
import ofetch from '@/utils/ofetch';
|
|
4
|
+
|
|
5
|
+
import { type CheerioAPI, load } from 'cheerio';
|
|
6
|
+
import { type Context } from 'hono';
|
|
7
|
+
|
|
8
|
+
import { baseUrl, fetchItems } from './util';
|
|
9
|
+
|
|
10
|
+
export const handler = async (ctx: Context): Promise<Data> => {
|
|
11
|
+
const { category = 'highlights', country = 'us' } = ctx.req.param();
|
|
12
|
+
const limit: number = Number.parseInt(ctx.req.query('limit') ?? '100', 10);
|
|
13
|
+
|
|
14
|
+
const targetUrl: string = new URL(category.endsWith('/') ? category : `${category}/`, baseUrl).href;
|
|
15
|
+
|
|
16
|
+
const response = await ofetch(targetUrl, {
|
|
17
|
+
headers: {
|
|
18
|
+
Cookie: `countryId=${country};`,
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
const $: CheerioAPI = load(response);
|
|
22
|
+
const language = $('html').attr('lang') ?? 'en';
|
|
23
|
+
const selector: string = 'div.card-panel';
|
|
24
|
+
|
|
25
|
+
const items: DataItem[] = await fetchItems($, selector, targetUrl, country, limit);
|
|
26
|
+
|
|
27
|
+
const title: string = $('title').text();
|
|
28
|
+
|
|
29
|
+
return {
|
|
30
|
+
title,
|
|
31
|
+
description: $('meta[name="description"]').attr('content'),
|
|
32
|
+
link: targetUrl,
|
|
33
|
+
item: items,
|
|
34
|
+
allowEmpty: true,
|
|
35
|
+
image: $('a.brand-logo img').attr('src') ? new URL($('a.brand-logo img').attr('src') as string, baseUrl).href : undefined,
|
|
36
|
+
author: title.split(/\|/).pop(),
|
|
37
|
+
language,
|
|
38
|
+
id: targetUrl,
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export const route: Route = {
|
|
43
|
+
path: '/:category?/:country?',
|
|
44
|
+
name: 'Category',
|
|
45
|
+
url: 'app-sales.net',
|
|
46
|
+
maintainers: ['nczitzk'],
|
|
47
|
+
handler,
|
|
48
|
+
example: '/app-sales/highlights',
|
|
49
|
+
parameters: {
|
|
50
|
+
category: {
|
|
51
|
+
description: 'Category, `highlights` as Highlights by default',
|
|
52
|
+
options: [
|
|
53
|
+
{
|
|
54
|
+
label: 'Highlights',
|
|
55
|
+
value: 'highlights',
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
label: 'Active Sales',
|
|
59
|
+
value: 'activesales',
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
label: 'Now Free',
|
|
63
|
+
value: 'nowfree',
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
},
|
|
67
|
+
country: {
|
|
68
|
+
description: 'Country ID, `us` as United States by default',
|
|
69
|
+
options: [
|
|
70
|
+
{
|
|
71
|
+
label: 'United States',
|
|
72
|
+
value: 'us',
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
label: 'Austria',
|
|
76
|
+
value: 'at',
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
label: 'Australia',
|
|
80
|
+
value: 'au',
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
label: 'Brazil',
|
|
84
|
+
value: 'br',
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
label: 'Canada',
|
|
88
|
+
value: 'ca',
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
label: 'France',
|
|
92
|
+
value: 'fr',
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
label: 'Germany',
|
|
96
|
+
value: 'de',
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
label: 'India',
|
|
100
|
+
value: 'in',
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
label: 'Italy',
|
|
104
|
+
value: 'it',
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
label: 'Netherlands',
|
|
108
|
+
value: 'nl',
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
label: 'Poland',
|
|
112
|
+
value: 'pl',
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
label: 'Russia',
|
|
116
|
+
value: 'ru',
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
label: 'Spain',
|
|
120
|
+
value: 'es',
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
label: 'Sweden',
|
|
124
|
+
value: 'se',
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
label: 'Great Britain',
|
|
128
|
+
value: 'gb',
|
|
129
|
+
},
|
|
130
|
+
],
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
description: `:::tip
|
|
134
|
+
To subscribe to [Highlights](https://www.app-sales.net/highlights/), where the source URL is \`https://www.app-sales.net/highlights/\`, extract the certain parts from this URL to be used as parameters, resulting in the route as [\`/app-sales/highlights\`](https://rsshub.app/app-sales/highlights).
|
|
135
|
+
:::
|
|
136
|
+
|
|
137
|
+
| Highlights | Active Sales | Now Free |
|
|
138
|
+
| ---------- | ------------ | -------- |
|
|
139
|
+
| highlights | activesales | nowfree |
|
|
140
|
+
|
|
141
|
+
<details>
|
|
142
|
+
<summary>More countries</summary>
|
|
143
|
+
|
|
144
|
+
| Currency | Country | ID |
|
|
145
|
+
| -------- | ------------- | --- |
|
|
146
|
+
| USD | United States | us |
|
|
147
|
+
| EUR | Austria | at |
|
|
148
|
+
| AUD | Australia | au |
|
|
149
|
+
| BRL | Brazil | br |
|
|
150
|
+
| CAD | Canada | ca |
|
|
151
|
+
| EUR | France | fr |
|
|
152
|
+
| EUR | Germany | de |
|
|
153
|
+
| INR | India | in |
|
|
154
|
+
| EUR | Italy | it |
|
|
155
|
+
| EUR | Netherlands | nl |
|
|
156
|
+
| PLN | Poland | pl |
|
|
157
|
+
| RUB | Russia | ru |
|
|
158
|
+
| EUR | Spain | es |
|
|
159
|
+
| SEK | Sweden | se |
|
|
160
|
+
| GBP | Great Britain | gb |
|
|
161
|
+
|
|
162
|
+
</details>
|
|
163
|
+
`,
|
|
164
|
+
categories: ['program-update'],
|
|
165
|
+
features: {
|
|
166
|
+
requireConfig: false,
|
|
167
|
+
requirePuppeteer: false,
|
|
168
|
+
antiCrawler: false,
|
|
169
|
+
supportRadar: true,
|
|
170
|
+
supportBT: false,
|
|
171
|
+
supportPodcast: false,
|
|
172
|
+
supportScihub: false,
|
|
173
|
+
},
|
|
174
|
+
radar: [
|
|
175
|
+
{
|
|
176
|
+
source: ['app-sales.net/:category'],
|
|
177
|
+
target: (params) => {
|
|
178
|
+
const category: string = params.category;
|
|
179
|
+
|
|
180
|
+
return `/app-sales${category ? `/${category}` : ''}`;
|
|
181
|
+
},
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
title: 'Highlights',
|
|
185
|
+
source: ['app-sales.net/highlights'],
|
|
186
|
+
target: '/highlights',
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
title: 'Active Sales',
|
|
190
|
+
source: ['app-sales.net/activesales'],
|
|
191
|
+
target: '/activesales',
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
title: 'Now Free',
|
|
195
|
+
source: ['app-sales.net/nowfree'],
|
|
196
|
+
target: '/nowfree',
|
|
197
|
+
},
|
|
198
|
+
],
|
|
199
|
+
view: ViewType.Articles,
|
|
200
|
+
};
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { type Data, type DataItem, type Route, ViewType } from '@/types';
|
|
2
|
+
|
|
3
|
+
import ofetch from '@/utils/ofetch';
|
|
4
|
+
|
|
5
|
+
import { type CheerioAPI, load } from 'cheerio';
|
|
6
|
+
import { type Context } from 'hono';
|
|
7
|
+
|
|
8
|
+
import { baseUrl, fetchItems } from './util';
|
|
9
|
+
|
|
10
|
+
export const handler = async (ctx: Context): Promise<Data> => {
|
|
11
|
+
const { time = '24h', country = 'us' } = ctx.req.param();
|
|
12
|
+
const limit: number = Number.parseInt(ctx.req.query('limit') ?? '30', 10);
|
|
13
|
+
|
|
14
|
+
const targetUrl: string = new URL('mostwanted/', baseUrl).href;
|
|
15
|
+
|
|
16
|
+
const response = await ofetch(targetUrl, {
|
|
17
|
+
headers: {
|
|
18
|
+
Cookie: `countryId=${country};`,
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
const $: CheerioAPI = load(response);
|
|
22
|
+
const language = $('html').attr('lang') ?? 'en';
|
|
23
|
+
const selector: string = time ? `div[id$="-${time}"] div.card-panel` : 'div.card-panel';
|
|
24
|
+
|
|
25
|
+
const items: DataItem[] = await fetchItems($, selector, targetUrl, country, limit);
|
|
26
|
+
|
|
27
|
+
const title: string = $('title').text();
|
|
28
|
+
const tabTitle: string = $(`ul.tabs li.tab a[href$="-${time}"]`).text();
|
|
29
|
+
|
|
30
|
+
return {
|
|
31
|
+
title: `${title}${tabTitle ? ` - ${tabTitle}` : ''}`,
|
|
32
|
+
description: $('meta[name="description"]').attr('content'),
|
|
33
|
+
link: targetUrl,
|
|
34
|
+
item: items,
|
|
35
|
+
allowEmpty: true,
|
|
36
|
+
image: $('a.brand-logo img').attr('src') ? new URL($('a.brand-logo img').attr('src') as string, baseUrl).href : undefined,
|
|
37
|
+
author: title.split(/\|/).pop(),
|
|
38
|
+
language,
|
|
39
|
+
id: targetUrl,
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export const route: Route = {
|
|
44
|
+
path: '/mostwanted/:time?/:country?',
|
|
45
|
+
name: 'Watchlist Charts',
|
|
46
|
+
url: 'app-sales.net',
|
|
47
|
+
maintainers: ['nczitzk'],
|
|
48
|
+
handler,
|
|
49
|
+
example: '/app-sales/mostwanted',
|
|
50
|
+
parameters: {
|
|
51
|
+
time: {
|
|
52
|
+
description: 'Time, `24h` as Last 24h by default',
|
|
53
|
+
options: [
|
|
54
|
+
{
|
|
55
|
+
label: 'Last 24h',
|
|
56
|
+
value: '24h',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
label: 'Last Week',
|
|
60
|
+
value: 'week',
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
label: 'All Time',
|
|
64
|
+
value: 'alltime',
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
},
|
|
68
|
+
country: {
|
|
69
|
+
description: 'Country ID, `us` as United States by default',
|
|
70
|
+
options: [
|
|
71
|
+
{
|
|
72
|
+
label: 'United States',
|
|
73
|
+
value: 'us',
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
label: 'Austria',
|
|
77
|
+
value: 'at',
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
label: 'Australia',
|
|
81
|
+
value: 'au',
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
label: 'Brazil',
|
|
85
|
+
value: 'br',
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
label: 'Canada',
|
|
89
|
+
value: 'ca',
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
label: 'France',
|
|
93
|
+
value: 'fr',
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
label: 'Germany',
|
|
97
|
+
value: 'de',
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
label: 'India',
|
|
101
|
+
value: 'in',
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
label: 'Italy',
|
|
105
|
+
value: 'it',
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
label: 'Netherlands',
|
|
109
|
+
value: 'nl',
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
label: 'Poland',
|
|
113
|
+
value: 'pl',
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
label: 'Russia',
|
|
117
|
+
value: 'ru',
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
label: 'Spain',
|
|
121
|
+
value: 'es',
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
label: 'Sweden',
|
|
125
|
+
value: 'se',
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
label: 'Great Britain',
|
|
129
|
+
value: 'gb',
|
|
130
|
+
},
|
|
131
|
+
],
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
description: `
|
|
135
|
+
| Last 24h | Last Week | All Time |
|
|
136
|
+
| -------- | --------- | -------- |
|
|
137
|
+
| 24h | week | alltime |
|
|
138
|
+
|
|
139
|
+
<details>
|
|
140
|
+
<summary>More countries</summary>
|
|
141
|
+
|
|
142
|
+
| Currency | Country | ID |
|
|
143
|
+
| -------- | ------------- | --- |
|
|
144
|
+
| USD | United States | us |
|
|
145
|
+
| EUR | Austria | at |
|
|
146
|
+
| AUD | Australia | au |
|
|
147
|
+
| BRL | Brazil | br |
|
|
148
|
+
| CAD | Canada | ca |
|
|
149
|
+
| EUR | France | fr |
|
|
150
|
+
| EUR | Germany | de |
|
|
151
|
+
| INR | India | in |
|
|
152
|
+
| EUR | Italy | it |
|
|
153
|
+
| EUR | Netherlands | nl |
|
|
154
|
+
| PLN | Poland | pl |
|
|
155
|
+
| RUB | Russia | ru |
|
|
156
|
+
| EUR | Spain | es |
|
|
157
|
+
| SEK | Sweden | se |
|
|
158
|
+
| GBP | Great Britain | gb |
|
|
159
|
+
|
|
160
|
+
</details>
|
|
161
|
+
`,
|
|
162
|
+
categories: ['program-update'],
|
|
163
|
+
features: {
|
|
164
|
+
requireConfig: false,
|
|
165
|
+
requirePuppeteer: false,
|
|
166
|
+
antiCrawler: false,
|
|
167
|
+
supportRadar: true,
|
|
168
|
+
supportBT: false,
|
|
169
|
+
supportPodcast: false,
|
|
170
|
+
supportScihub: false,
|
|
171
|
+
},
|
|
172
|
+
radar: [
|
|
173
|
+
{
|
|
174
|
+
source: ['app-sales.net/mostwanted'],
|
|
175
|
+
target: '/mostwanted',
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
title: 'Watchlist Charts - Last 24h',
|
|
179
|
+
source: ['app-sales.net/mostwanted'],
|
|
180
|
+
target: '/mostwanted/24h',
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
title: 'Watchlist Charts - Last Week',
|
|
184
|
+
source: ['app-sales.net/mostwanted'],
|
|
185
|
+
target: '/mostwanted/week',
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
title: 'Watchlist Charts - All Time',
|
|
189
|
+
source: ['app-sales.net/mostwanted'],
|
|
190
|
+
target: '/mostwanted/alltime',
|
|
191
|
+
},
|
|
192
|
+
],
|
|
193
|
+
view: ViewType.Articles,
|
|
194
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Namespace } from '@/types';
|
|
2
|
+
|
|
3
|
+
export const namespace: Namespace = {
|
|
4
|
+
name: 'AppSales',
|
|
5
|
+
url: 'app-sales.net',
|
|
6
|
+
categories: ['program-update'],
|
|
7
|
+
description: 'Most recent discounted and temporarily free Android apps and games on Google Play',
|
|
8
|
+
lang: 'en',
|
|
9
|
+
};
|
|
@@ -0,0 +1,120 @@
|
|
|
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 appName }}
|
|
16
|
+
<table>
|
|
17
|
+
<tbody>
|
|
18
|
+
<tr>
|
|
19
|
+
<th>
|
|
20
|
+
Name
|
|
21
|
+
</th>
|
|
22
|
+
<td>
|
|
23
|
+
{{ appName }}
|
|
24
|
+
</td>
|
|
25
|
+
</tr>
|
|
26
|
+
{{ if appDev }}
|
|
27
|
+
<tr>
|
|
28
|
+
<th>
|
|
29
|
+
Developer
|
|
30
|
+
</th>
|
|
31
|
+
<td>
|
|
32
|
+
{{ appDev }}
|
|
33
|
+
</td>
|
|
34
|
+
</tr>
|
|
35
|
+
{{ /if }}
|
|
36
|
+
{{ if appNote }}
|
|
37
|
+
<tr>
|
|
38
|
+
<th>
|
|
39
|
+
Note
|
|
40
|
+
</th>
|
|
41
|
+
<td>
|
|
42
|
+
{{ appNote }}
|
|
43
|
+
</td>
|
|
44
|
+
</tr>
|
|
45
|
+
{{ /if }}
|
|
46
|
+
{{ if rating }}
|
|
47
|
+
<tr>
|
|
48
|
+
<th>
|
|
49
|
+
Rating
|
|
50
|
+
</th>
|
|
51
|
+
<td>
|
|
52
|
+
{{ rating }}
|
|
53
|
+
</td>
|
|
54
|
+
</tr>
|
|
55
|
+
{{ /if }}
|
|
56
|
+
{{ if downloads }}
|
|
57
|
+
<tr>
|
|
58
|
+
<th>
|
|
59
|
+
Downloads
|
|
60
|
+
</th>
|
|
61
|
+
<td>
|
|
62
|
+
{{ downloads }}
|
|
63
|
+
</td>
|
|
64
|
+
</tr>
|
|
65
|
+
{{ /if }}
|
|
66
|
+
{{ if bookmarks }}
|
|
67
|
+
<tr>
|
|
68
|
+
<th>
|
|
69
|
+
Bookmarks
|
|
70
|
+
</th>
|
|
71
|
+
<td>
|
|
72
|
+
{{ bookmarks }}
|
|
73
|
+
</td>
|
|
74
|
+
</tr>
|
|
75
|
+
{{ /if }}
|
|
76
|
+
{{ if priceNew }}
|
|
77
|
+
<tr>
|
|
78
|
+
<th>
|
|
79
|
+
Price
|
|
80
|
+
</th>
|
|
81
|
+
<td>
|
|
82
|
+
<span>
|
|
83
|
+
<strong>
|
|
84
|
+
{{ priceNew }}
|
|
85
|
+
</strong>
|
|
86
|
+
</span>
|
|
87
|
+
{{ if priceOld }}
|
|
88
|
+
<span style="color: grey;">
|
|
89
|
+
<small>
|
|
90
|
+
<del>
|
|
91
|
+
{{ priceOld }}
|
|
92
|
+
<del>
|
|
93
|
+
<small>
|
|
94
|
+
</span>
|
|
95
|
+
{{ /if }}
|
|
96
|
+
{{ if priceDisco }}
|
|
97
|
+
<span style="color: white; background-color: #54ae45;">
|
|
98
|
+
<strong>
|
|
99
|
+
{{ priceDisco }}
|
|
100
|
+
</strong>
|
|
101
|
+
</span>
|
|
102
|
+
{{ /if }}
|
|
103
|
+
</td>
|
|
104
|
+
</tr>
|
|
105
|
+
{{ /if }}
|
|
106
|
+
{{ if linkUrl }}
|
|
107
|
+
<tr>
|
|
108
|
+
<th>
|
|
109
|
+
Link
|
|
110
|
+
</th>
|
|
111
|
+
<td>
|
|
112
|
+
<a href="{{ linkUrl }}" target="_blank">
|
|
113
|
+
{{ linkUrl }}
|
|
114
|
+
</a>
|
|
115
|
+
</td>
|
|
116
|
+
</tr>
|
|
117
|
+
{{ /if }}
|
|
118
|
+
</tbody>
|
|
119
|
+
</table>
|
|
120
|
+
{{ /if }}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { type DataItem } from '@/types';
|
|
2
|
+
|
|
3
|
+
import { art } from '@/utils/render';
|
|
4
|
+
import ofetch from '@/utils/ofetch';
|
|
5
|
+
|
|
6
|
+
import { type CheerioAPI, type Cheerio, load } from 'cheerio';
|
|
7
|
+
import type { Element } from 'domhandler';
|
|
8
|
+
import path from 'node:path';
|
|
9
|
+
|
|
10
|
+
const baseUrl: string = 'https://www.app-sales.net';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Formats price change information into a standardized tag
|
|
14
|
+
* @param priceOld - Old price
|
|
15
|
+
* @param priceNew - New price
|
|
16
|
+
* @param priceDisco - Discount
|
|
17
|
+
* @returns Formatted price change tag string. Returns empty string when no new price exists.
|
|
18
|
+
*/
|
|
19
|
+
const formatPriceChangeTag = (priceOld: string, priceNew: string, priceDisco: string): string => (priceNew?.trim() ? `[${[priceOld && `${priceOld}→`, priceNew, priceDisco && ` ${priceDisco}`].filter(Boolean).join('')}]` : '');
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Processes DOM elements into structured data items
|
|
23
|
+
* @param $ - CheerioAPI instance
|
|
24
|
+
* @param selector - CSS selector for target elements
|
|
25
|
+
* @returns Parsed data items array.
|
|
26
|
+
*/
|
|
27
|
+
const processItems = ($: CheerioAPI, selector: string): DataItem[] =>
|
|
28
|
+
$(selector)
|
|
29
|
+
.toArray()
|
|
30
|
+
.map((el) => {
|
|
31
|
+
const $el: Cheerio<Element> = $(el);
|
|
32
|
+
|
|
33
|
+
const appName: string = $el.find('p.app-name').text()?.trim();
|
|
34
|
+
const appDev: string = $el.find('p.app-dev').text()?.trim();
|
|
35
|
+
const appNote: string = $el.find('p.app-dev').next('p')?.text()?.trim() ?? '';
|
|
36
|
+
const rating: string = $el.find('p.rating').contents().last().text()?.trim();
|
|
37
|
+
const downloads: string = $el.find('p.downloads').contents().last().text()?.trim();
|
|
38
|
+
const bookmarks: string = $el.find('p.bookmarks').contents().last().text()?.trim();
|
|
39
|
+
const priceNew: string = $el.find('div.price-new').text()?.trim();
|
|
40
|
+
const priceOld: string = $el.find('div.price-old').text()?.trim();
|
|
41
|
+
const priceDisco: string = $el.find('div.price-disco').text()?.trim();
|
|
42
|
+
|
|
43
|
+
const isHot: boolean = $el.hasClass('sale-hot');
|
|
44
|
+
const isFree: boolean = priceNew?.toLocaleUpperCase() === 'FREE';
|
|
45
|
+
|
|
46
|
+
const title: string = `${appName} ${formatPriceChangeTag(priceOld, priceNew, priceDisco)}`;
|
|
47
|
+
const image: string | undefined = $el.find('div.app-icon img').attr('src');
|
|
48
|
+
const linkUrl: string | undefined = $el.find('div.sale-list-action a').attr('href');
|
|
49
|
+
const description: string | undefined = art(path.join(__dirname, 'templates/description.art'), {
|
|
50
|
+
images: image
|
|
51
|
+
? [
|
|
52
|
+
{
|
|
53
|
+
alt: `${appName}-${appDev}`,
|
|
54
|
+
src: image,
|
|
55
|
+
},
|
|
56
|
+
]
|
|
57
|
+
: undefined,
|
|
58
|
+
appName,
|
|
59
|
+
appDev,
|
|
60
|
+
appNote,
|
|
61
|
+
rating,
|
|
62
|
+
downloads,
|
|
63
|
+
bookmarks,
|
|
64
|
+
priceNew,
|
|
65
|
+
priceOld,
|
|
66
|
+
priceDisco,
|
|
67
|
+
linkUrl,
|
|
68
|
+
});
|
|
69
|
+
const categories: string[] = [isHot ? 'Hot' : undefined, isFree ? 'Free' : undefined].filter(Boolean) as string[];
|
|
70
|
+
const authors: DataItem['author'] = appDev;
|
|
71
|
+
const guid: string = [appName, appDev, rating, downloads, bookmarks, priceNew].filter(Boolean).join('-');
|
|
72
|
+
|
|
73
|
+
const processedItem: DataItem = {
|
|
74
|
+
title: title.trim(),
|
|
75
|
+
description,
|
|
76
|
+
link: linkUrl,
|
|
77
|
+
category: categories,
|
|
78
|
+
author: authors,
|
|
79
|
+
guid,
|
|
80
|
+
id: guid,
|
|
81
|
+
content: {
|
|
82
|
+
html: description,
|
|
83
|
+
text: description,
|
|
84
|
+
},
|
|
85
|
+
image,
|
|
86
|
+
banner: image,
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
return processedItem;
|
|
90
|
+
});
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Retrieves pagination URLs from page navigation
|
|
94
|
+
* @param $ - CheerioAPI instance
|
|
95
|
+
* @param targetUrl - Base URL for relative path resolution
|
|
96
|
+
* @returns Array of absolute pagination URLs.
|
|
97
|
+
*/
|
|
98
|
+
const getAvailablePageUrls = ($: CheerioAPI, targetUrl: string): string[] =>
|
|
99
|
+
$('ul.pagination li.waves-effect a')
|
|
100
|
+
.slice(0, -1)
|
|
101
|
+
.toArray()
|
|
102
|
+
.filter((el) => {
|
|
103
|
+
const $el: Cheerio<Element> = $(el);
|
|
104
|
+
|
|
105
|
+
return $el.attr('href');
|
|
106
|
+
})
|
|
107
|
+
.map((el) => {
|
|
108
|
+
const $el: Cheerio<Element> = $(el);
|
|
109
|
+
|
|
110
|
+
return new URL($el.attr('href') as string, targetUrl).href;
|
|
111
|
+
});
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Aggregates items across paginated pages
|
|
115
|
+
* @param $ - Initial page CheerioAPI instance
|
|
116
|
+
* @param selector - Target element CSS selector
|
|
117
|
+
* @param targetUrl - Base URL for pagination requests
|
|
118
|
+
* @param country - Country ID for request headers
|
|
119
|
+
* @param limit - Maximum number of items to return
|
|
120
|
+
* @returns Aggregated items array within specified limit.
|
|
121
|
+
*/
|
|
122
|
+
const fetchItems = async ($: CheerioAPI, selector: string, targetUrl: string, country: string, limit: number): Promise<DataItem[]> => {
|
|
123
|
+
const initialItems = processItems($, selector);
|
|
124
|
+
if (initialItems.length >= limit) {
|
|
125
|
+
return initialItems.slice(0, limit);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Recursive helper function to process paginated URLs
|
|
130
|
+
*
|
|
131
|
+
* @param remainingUrls - Array of URLs yet to be processed
|
|
132
|
+
* @param aggregated - Accumulator for collected items
|
|
133
|
+
*
|
|
134
|
+
* @returns Promise resolving to aggregated items
|
|
135
|
+
*/
|
|
136
|
+
const processPage = async (remainingUrls: string[], aggregated: DataItem[]): Promise<DataItem[]> => {
|
|
137
|
+
if (aggregated.length >= limit || remainingUrls.length === 0) {
|
|
138
|
+
return aggregated.slice(0, limit);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
const [currentUrl, ...restUrls] = remainingUrls;
|
|
142
|
+
|
|
143
|
+
try {
|
|
144
|
+
const response = await ofetch(currentUrl, {
|
|
145
|
+
headers: {
|
|
146
|
+
Cookie: `countryId=${country};`,
|
|
147
|
+
},
|
|
148
|
+
});
|
|
149
|
+
const pageItems = processItems(load(response), selector);
|
|
150
|
+
const newItems = [...aggregated, ...pageItems];
|
|
151
|
+
|
|
152
|
+
return newItems.length >= limit ? newItems.slice(0, limit) : processPage(restUrls, newItems);
|
|
153
|
+
} catch {
|
|
154
|
+
return processPage(restUrls, aggregated);
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
return await processPage(getAvailablePageUrls($, targetUrl), initialItems);
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
export { baseUrl, fetchItems };
|
package/lib/routes/apple/apps.ts
CHANGED
|
@@ -17,7 +17,7 @@ const platforms = {
|
|
|
17
17
|
|
|
18
18
|
export const route: Route = {
|
|
19
19
|
path: '/apps/update/:country/:id/:platform?',
|
|
20
|
-
categories: ['program-update'
|
|
20
|
+
categories: ['program-update'],
|
|
21
21
|
view: ViewType.Notifications,
|
|
22
22
|
example: '/apple/apps/update/us/id408709785',
|
|
23
23
|
parameters: {
|