@ttkit/daily-hot-api 0.0.0-stage → 0.1.0
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/.env.example +77 -0
- package/LICENSE +21 -0
- package/README.md +315 -2
- package/bin/daily-hot-api.js +25 -0
- package/dist/app.controller.d.ts +41 -0
- package/dist/app.controller.js +91 -0
- package/dist/app.controller.js.map +1 -0
- package/dist/app.module.d.ts +4 -0
- package/dist/app.module.js +44 -0
- package/dist/app.module.js.map +1 -0
- package/dist/app.service.d.ts +19 -0
- package/dist/app.service.js +57 -0
- package/dist/app.service.js.map +1 -0
- package/dist/cache/cache.module.d.ts +2 -0
- package/dist/cache/cache.module.js +52 -0
- package/dist/cache/cache.module.js.map +1 -0
- package/dist/cache/cache.service.d.ts +26 -0
- package/dist/cache/cache.service.js +163 -0
- package/dist/cache/cache.service.js.map +1 -0
- package/dist/cli/args.d.ts +24 -0
- package/dist/cli/args.js +261 -0
- package/dist/cli/args.js.map +1 -0
- package/dist/cli/commands/logs.d.ts +3 -0
- package/dist/cli/commands/logs.js +55 -0
- package/dist/cli/commands/logs.js.map +1 -0
- package/dist/cli/commands/restart.d.ts +3 -0
- package/dist/cli/commands/restart.js +62 -0
- package/dist/cli/commands/restart.js.map +1 -0
- package/dist/cli/commands/start.d.ts +3 -0
- package/dist/cli/commands/start.js +280 -0
- package/dist/cli/commands/start.js.map +1 -0
- package/dist/cli/commands/status.d.ts +3 -0
- package/dist/cli/commands/status.js +78 -0
- package/dist/cli/commands/status.js.map +1 -0
- package/dist/cli/commands/stop.d.ts +12 -0
- package/dist/cli/commands/stop.js +135 -0
- package/dist/cli/commands/stop.js.map +1 -0
- package/dist/cli/context.d.ts +4 -0
- package/dist/cli/context.js +3 -0
- package/dist/cli/context.js.map +1 -0
- package/dist/cli/env.d.ts +2 -0
- package/dist/cli/env.js +80 -0
- package/dist/cli/env.js.map +1 -0
- package/dist/cli/errors.d.ts +14 -0
- package/dist/cli/errors.js +25 -0
- package/dist/cli/errors.js.map +1 -0
- package/dist/cli/health.d.ts +2 -0
- package/dist/cli/health.js +44 -0
- package/dist/cli/health.js.map +1 -0
- package/dist/cli/help.d.ts +3 -0
- package/dist/cli/help.js +158 -0
- package/dist/cli/help.js.map +1 -0
- package/dist/cli/index.d.ts +2 -0
- package/dist/cli/index.js +94 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/log-file.d.ts +8 -0
- package/dist/cli/log-file.js +58 -0
- package/dist/cli/log-file.js.map +1 -0
- package/dist/cli/output.d.ts +7 -0
- package/dist/cli/output.js +46 -0
- package/dist/cli/output.js.map +1 -0
- package/dist/cli/paths.d.ts +33 -0
- package/dist/cli/paths.js +76 -0
- package/dist/cli/paths.js.map +1 -0
- package/dist/cli/run-state.d.ts +25 -0
- package/dist/cli/run-state.js +159 -0
- package/dist/cli/run-state.js.map +1 -0
- package/dist/common/middlewares/logger.middleware.d.ts +7 -0
- package/dist/common/middlewares/logger.middleware.js +29 -0
- package/dist/common/middlewares/logger.middleware.js.map +1 -0
- package/dist/config/config.module.d.ts +2 -0
- package/dist/config/config.module.js +47 -0
- package/dist/config/config.module.js.map +1 -0
- package/dist/config/configuration.d.ts +3 -0
- package/dist/config/configuration.js +5 -0
- package/dist/config/configuration.js.map +1 -0
- package/dist/config/validation.schema.d.ts +114 -0
- package/dist/config/validation.schema.js +69 -0
- package/dist/config/validation.schema.js.map +1 -0
- package/dist/daily-brief/clients/ai-analysis.client.d.ts +20 -0
- package/dist/daily-brief/clients/ai-analysis.client.js +217 -0
- package/dist/daily-brief/clients/ai-analysis.client.js.map +1 -0
- package/dist/daily-brief/clients/brief-search.service.d.ts +11 -0
- package/dist/daily-brief/clients/brief-search.service.js +52 -0
- package/dist/daily-brief/clients/brief-search.service.js.map +1 -0
- package/dist/daily-brief/clients/deepseek-search.client.d.ts +11 -0
- package/dist/daily-brief/clients/deepseek-search.client.js +70 -0
- package/dist/daily-brief/clients/deepseek-search.client.js.map +1 -0
- package/dist/daily-brief/clients/tavily-search.client.d.ts +11 -0
- package/dist/daily-brief/clients/tavily-search.client.js +72 -0
- package/dist/daily-brief/clients/tavily-search.client.js.map +1 -0
- package/dist/daily-brief/daily-brief.config.d.ts +31 -0
- package/dist/daily-brief/daily-brief.config.js +108 -0
- package/dist/daily-brief/daily-brief.config.js.map +1 -0
- package/dist/daily-brief/daily-brief.controller.d.ts +72 -0
- package/dist/daily-brief/daily-brief.controller.js +169 -0
- package/dist/daily-brief/daily-brief.controller.js.map +1 -0
- package/dist/daily-brief/daily-brief.module.d.ts +2 -0
- package/dist/daily-brief/daily-brief.module.js +49 -0
- package/dist/daily-brief/daily-brief.module.js.map +1 -0
- package/dist/daily-brief/daily-brief.scheduler.d.ts +30 -0
- package/dist/daily-brief/daily-brief.scheduler.js +113 -0
- package/dist/daily-brief/daily-brief.scheduler.js.map +1 -0
- package/dist/daily-brief/daily-brief.service.d.ts +101 -0
- package/dist/daily-brief/daily-brief.service.js +412 -0
- package/dist/daily-brief/daily-brief.service.js.map +1 -0
- package/dist/daily-brief/dto/brief-date-param.dto.d.ts +3 -0
- package/dist/daily-brief/dto/brief-date-param.dto.js +23 -0
- package/dist/daily-brief/dto/brief-date-param.dto.js.map +1 -0
- package/dist/daily-brief/dto/generate-brief.dto.d.ts +6 -0
- package/dist/daily-brief/dto/generate-brief.dto.js +39 -0
- package/dist/daily-brief/dto/generate-brief.dto.js.map +1 -0
- package/dist/daily-brief/dto/list-briefs-query.dto.d.ts +6 -0
- package/dist/daily-brief/dto/list-briefs-query.dto.js +42 -0
- package/dist/daily-brief/dto/list-briefs-query.dto.js.map +1 -0
- package/dist/daily-brief/dto/stock-ranking-query.dto.d.ts +6 -0
- package/dist/daily-brief/dto/stock-ranking-query.dto.js +46 -0
- package/dist/daily-brief/dto/stock-ranking-query.dto.js.map +1 -0
- package/dist/daily-brief/interfaces/daily-brief.interface.d.ts +59 -0
- package/dist/daily-brief/interfaces/daily-brief.interface.js +3 -0
- package/dist/daily-brief/interfaces/daily-brief.interface.js.map +1 -0
- package/dist/daily-brief/interfaces/search-provider.interface.d.ts +11 -0
- package/dist/daily-brief/interfaces/search-provider.interface.js +3 -0
- package/dist/daily-brief/interfaces/search-provider.interface.js.map +1 -0
- package/dist/daily-brief/utils/brief-date.d.ts +2 -0
- package/dist/daily-brief/utils/brief-date.js +16 -0
- package/dist/daily-brief/utils/brief-date.js.map +1 -0
- package/dist/daily-brief/utils/concurrency.d.ts +1 -0
- package/dist/daily-brief/utils/concurrency.js +20 -0
- package/dist/daily-brief/utils/concurrency.js.map +1 -0
- package/dist/database/database.module.d.ts +2 -0
- package/dist/database/database.module.js +57 -0
- package/dist/database/database.module.js.map +1 -0
- package/dist/database/repositories/daily-brief.repository.d.ts +96 -0
- package/dist/database/repositories/daily-brief.repository.js +457 -0
- package/dist/database/repositories/daily-brief.repository.js.map +1 -0
- package/dist/database/repositories/hot-item.repository.d.ts +52 -0
- package/dist/database/repositories/hot-item.repository.js +255 -0
- package/dist/database/repositories/hot-item.repository.js.map +1 -0
- package/dist/database/repositories/source-config.repository.d.ts +15 -0
- package/dist/database/repositories/source-config.repository.js +77 -0
- package/dist/database/repositories/source-config.repository.js.map +1 -0
- package/dist/database/schemas/daily-brief.schema.d.ts +30 -0
- package/dist/database/schemas/daily-brief.schema.js +103 -0
- package/dist/database/schemas/daily-brief.schema.js.map +1 -0
- package/dist/database/schemas/hot-item.schema.d.ts +20 -0
- package/dist/database/schemas/hot-item.schema.js +72 -0
- package/dist/database/schemas/hot-item.schema.js.map +1 -0
- package/dist/database/schemas/source-config.schema.d.ts +15 -0
- package/dist/database/schemas/source-config.schema.js +47 -0
- package/dist/database/schemas/source-config.schema.js.map +1 -0
- package/dist/history/dto/history-response.dto.d.ts +17 -0
- package/dist/history/dto/history-response.dto.js +13 -0
- package/dist/history/dto/history-response.dto.js.map +1 -0
- package/dist/history/dto/search-history.dto.d.ts +10 -0
- package/dist/history/dto/search-history.dto.js +72 -0
- package/dist/history/dto/search-history.dto.js.map +1 -0
- package/dist/history/history.controller.d.ts +13 -0
- package/dist/history/history.controller.js +92 -0
- package/dist/history/history.controller.js.map +1 -0
- package/dist/history/history.module.d.ts +2 -0
- package/dist/history/history.module.js +25 -0
- package/dist/history/history.module.js.map +1 -0
- package/dist/history/history.service.d.ts +15 -0
- package/dist/history/history.service.js +68 -0
- package/dist/history/history.service.js.map +1 -0
- package/dist/host-lists/decorators/hot-source.decorator.d.ts +9 -0
- package/dist/host-lists/decorators/hot-source.decorator.js +11 -0
- package/dist/host-lists/decorators/hot-source.decorator.js.map +1 -0
- package/dist/host-lists/dto/hot-list.dto.d.ts +14 -0
- package/dist/host-lists/dto/hot-list.dto.js +94 -0
- package/dist/host-lists/dto/hot-list.dto.js.map +1 -0
- package/dist/host-lists/hot-lists.controller.d.ts +39 -0
- package/dist/host-lists/hot-lists.controller.js +87 -0
- package/dist/host-lists/hot-lists.controller.js.map +1 -0
- package/dist/host-lists/hot-lists.module.d.ts +2 -0
- package/dist/host-lists/hot-lists.module.js +36 -0
- package/dist/host-lists/hot-lists.module.js.map +1 -0
- package/dist/host-lists/hot-lists.service.d.ts +21 -0
- package/dist/host-lists/hot-lists.service.js +115 -0
- package/dist/host-lists/hot-lists.service.js.map +1 -0
- package/dist/host-lists/interfaces/hot-list-source.interface.d.ts +5 -0
- package/dist/host-lists/interfaces/hot-list-source.interface.js +3 -0
- package/dist/host-lists/interfaces/hot-list-source.interface.js.map +1 -0
- package/dist/host-lists/interfaces/hot-list.interface.d.ts +31 -0
- package/dist/host-lists/interfaces/hot-list.interface.js +3 -0
- package/dist/host-lists/interfaces/hot-list.interface.js.map +1 -0
- package/dist/host-lists/interfaces/router-data.interface.d.ts +19 -0
- package/dist/host-lists/interfaces/router-data.interface.js +3 -0
- package/dist/host-lists/interfaces/router-data.interface.js.map +1 -0
- package/dist/host-lists/sources/36kr.source.d.ts +9 -0
- package/dist/host-lists/sources/36kr.source.js +89 -0
- package/dist/host-lists/sources/36kr.source.js.map +1 -0
- package/dist/host-lists/sources/51cto.source.d.ts +11 -0
- package/dist/host-lists/sources/51cto.source.js +71 -0
- package/dist/host-lists/sources/51cto.source.js.map +1 -0
- package/dist/host-lists/sources/52pojie.source.d.ts +9 -0
- package/dist/host-lists/sources/52pojie.source.js +109 -0
- package/dist/host-lists/sources/52pojie.source.js.map +1 -0
- package/dist/host-lists/sources/acfun.source.d.ts +9 -0
- package/dist/host-lists/sources/acfun.source.js +90 -0
- package/dist/host-lists/sources/acfun.source.js.map +1 -0
- package/dist/host-lists/sources/baidu.source.d.ts +9 -0
- package/dist/host-lists/sources/baidu.source.js +85 -0
- package/dist/host-lists/sources/baidu.source.js.map +1 -0
- package/dist/host-lists/sources/bilibili.source.d.ts +14 -0
- package/dist/host-lists/sources/bilibili.source.js +188 -0
- package/dist/host-lists/sources/bilibili.source.js.map +1 -0
- package/dist/host-lists/sources/caixin.source.d.ts +9 -0
- package/dist/host-lists/sources/caixin.source.js +102 -0
- package/dist/host-lists/sources/caixin.source.js.map +1 -0
- package/dist/host-lists/sources/cls.source.d.ts +9 -0
- package/dist/host-lists/sources/cls.source.js +62 -0
- package/dist/host-lists/sources/cls.source.js.map +1 -0
- package/dist/host-lists/sources/coolapk.source.d.ts +9 -0
- package/dist/host-lists/sources/coolapk.source.js +57 -0
- package/dist/host-lists/sources/coolapk.source.js.map +1 -0
- package/dist/host-lists/sources/csdn.source.d.ts +9 -0
- package/dist/host-lists/sources/csdn.source.js +59 -0
- package/dist/host-lists/sources/csdn.source.js.map +1 -0
- package/dist/host-lists/sources/dgtle.source.d.ts +9 -0
- package/dist/host-lists/sources/dgtle.source.js +57 -0
- package/dist/host-lists/sources/dgtle.source.js.map +1 -0
- package/dist/host-lists/sources/douban-group.source.d.ts +11 -0
- package/dist/host-lists/sources/douban-group.source.js +100 -0
- package/dist/host-lists/sources/douban-group.source.js.map +1 -0
- package/dist/host-lists/sources/douban-movie.source.d.ts +10 -0
- package/dist/host-lists/sources/douban-movie.source.js +103 -0
- package/dist/host-lists/sources/douban-movie.source.js.map +1 -0
- package/dist/host-lists/sources/douyin.d.ts +16 -0
- package/dist/host-lists/sources/douyin.js +215 -0
- package/dist/host-lists/sources/douyin.js.map +1 -0
- package/dist/host-lists/sources/eastmoney-stock.source.d.ts +11 -0
- package/dist/host-lists/sources/eastmoney-stock.source.js +151 -0
- package/dist/host-lists/sources/eastmoney-stock.source.js.map +1 -0
- package/dist/host-lists/sources/eastmoney.source.d.ts +9 -0
- package/dist/host-lists/sources/eastmoney.source.js +86 -0
- package/dist/host-lists/sources/eastmoney.source.js.map +1 -0
- package/dist/host-lists/sources/geekpark.source.d.ts +9 -0
- package/dist/host-lists/sources/geekpark.source.js +60 -0
- package/dist/host-lists/sources/geekpark.source.js.map +1 -0
- package/dist/host-lists/sources/gelonghui.source.d.ts +9 -0
- package/dist/host-lists/sources/gelonghui.source.js +139 -0
- package/dist/host-lists/sources/gelonghui.source.js.map +1 -0
- package/dist/host-lists/sources/github.source.d.ts +12 -0
- package/dist/host-lists/sources/github.source.js +171 -0
- package/dist/host-lists/sources/github.source.js.map +1 -0
- package/dist/host-lists/sources/guokr.source.d.ts +11 -0
- package/dist/host-lists/sources/guokr.source.js +98 -0
- package/dist/host-lists/sources/guokr.source.js.map +1 -0
- package/dist/host-lists/sources/hackernews.source.d.ts +11 -0
- package/dist/host-lists/sources/hackernews.source.js +121 -0
- package/dist/host-lists/sources/hackernews.source.js.map +1 -0
- package/dist/host-lists/sources/hellogithub.source.d.ts +11 -0
- package/dist/host-lists/sources/hellogithub.source.js +98 -0
- package/dist/host-lists/sources/hellogithub.source.js.map +1 -0
- package/dist/host-lists/sources/history.source.d.ts +11 -0
- package/dist/host-lists/sources/history.source.js +92 -0
- package/dist/host-lists/sources/history.source.js.map +1 -0
- package/dist/host-lists/sources/honkai.source.d.ts +9 -0
- package/dist/host-lists/sources/honkai.source.js +72 -0
- package/dist/host-lists/sources/honkai.source.js.map +1 -0
- package/dist/host-lists/sources/hostloc.source.d.ts +9 -0
- package/dist/host-lists/sources/hostloc.source.js +75 -0
- package/dist/host-lists/sources/hostloc.source.js.map +1 -0
- package/dist/host-lists/sources/hupu.source.d.ts +9 -0
- package/dist/host-lists/sources/hupu.source.js +73 -0
- package/dist/host-lists/sources/hupu.source.js.map +1 -0
- package/dist/host-lists/sources/huxiu.source.d.ts +9 -0
- package/dist/host-lists/sources/huxiu.source.js +153 -0
- package/dist/host-lists/sources/huxiu.source.js.map +1 -0
- package/dist/host-lists/sources/ifanr.source.d.ts +9 -0
- package/dist/host-lists/sources/ifanr.source.js +57 -0
- package/dist/host-lists/sources/ifanr.source.js.map +1 -0
- package/dist/host-lists/sources/index.d.ts +2 -0
- package/dist/host-lists/sources/index.js +134 -0
- package/dist/host-lists/sources/index.js.map +1 -0
- package/dist/host-lists/sources/ithome-xijiayi.source.d.ts +9 -0
- package/dist/host-lists/sources/ithome-xijiayi.source.js +75 -0
- package/dist/host-lists/sources/ithome-xijiayi.source.js.map +1 -0
- package/dist/host-lists/sources/ithome.source.d.ts +9 -0
- package/dist/host-lists/sources/ithome.source.js +71 -0
- package/dist/host-lists/sources/ithome.source.js.map +1 -0
- package/dist/host-lists/sources/jd.source.d.ts +9 -0
- package/dist/host-lists/sources/jd.source.js +82 -0
- package/dist/host-lists/sources/jd.source.js.map +1 -0
- package/dist/host-lists/sources/jianshu.source.d.ts +9 -0
- package/dist/host-lists/sources/jianshu.source.js +72 -0
- package/dist/host-lists/sources/jianshu.source.js.map +1 -0
- package/dist/host-lists/sources/jin10.source.d.ts +9 -0
- package/dist/host-lists/sources/jin10.source.js +63 -0
- package/dist/host-lists/sources/jin10.source.js.map +1 -0
- package/dist/host-lists/sources/juejin.source.d.ts +10 -0
- package/dist/host-lists/sources/juejin.source.js +81 -0
- package/dist/host-lists/sources/juejin.source.js.map +1 -0
- package/dist/host-lists/sources/kuaishou.source.d.ts +13 -0
- package/dist/host-lists/sources/kuaishou.source.js +179 -0
- package/dist/host-lists/sources/kuaishou.source.js.map +1 -0
- package/dist/host-lists/sources/linuxdo.source.d.ts +9 -0
- package/dist/host-lists/sources/linuxdo.source.js +62 -0
- package/dist/host-lists/sources/linuxdo.source.js.map +1 -0
- package/dist/host-lists/sources/lol.source.d.ts +9 -0
- package/dist/host-lists/sources/lol.source.js +58 -0
- package/dist/host-lists/sources/lol.source.js.map +1 -0
- package/dist/host-lists/sources/miyoushe.source.d.ts +9 -0
- package/dist/host-lists/sources/miyoushe.source.js +88 -0
- package/dist/host-lists/sources/miyoushe.source.js.map +1 -0
- package/dist/host-lists/sources/netease-news.source.d.ts +9 -0
- package/dist/host-lists/sources/netease-news.source.js +56 -0
- package/dist/host-lists/sources/netease-news.source.js.map +1 -0
- package/dist/host-lists/sources/ngabbs.source.d.ts +9 -0
- package/dist/host-lists/sources/ngabbs.source.js +70 -0
- package/dist/host-lists/sources/ngabbs.source.js.map +1 -0
- package/dist/host-lists/sources/nodeseek.source.d.ts +9 -0
- package/dist/host-lists/sources/nodeseek.source.js +62 -0
- package/dist/host-lists/sources/nodeseek.source.js.map +1 -0
- package/dist/host-lists/sources/nytimes.source.d.ts +9 -0
- package/dist/host-lists/sources/nytimes.source.js +77 -0
- package/dist/host-lists/sources/nytimes.source.js.map +1 -0
- package/dist/host-lists/sources/producthunt.source.d.ts +9 -0
- package/dist/host-lists/sources/producthunt.source.js +75 -0
- package/dist/host-lists/sources/producthunt.source.js.map +1 -0
- package/dist/host-lists/sources/qq-news.source.d.ts +9 -0
- package/dist/host-lists/sources/qq-news.source.js +53 -0
- package/dist/host-lists/sources/qq-news.source.js.map +1 -0
- package/dist/host-lists/sources/sina-news.source.d.ts +9 -0
- package/dist/host-lists/sources/sina-news.source.js +98 -0
- package/dist/host-lists/sources/sina-news.source.js.map +1 -0
- package/dist/host-lists/sources/sina.source.d.ts +9 -0
- package/dist/host-lists/sources/sina.source.js +78 -0
- package/dist/host-lists/sources/sina.source.js.map +1 -0
- package/dist/host-lists/sources/smzdm.source.d.ts +9 -0
- package/dist/host-lists/sources/smzdm.source.js +71 -0
- package/dist/host-lists/sources/smzdm.source.js.map +1 -0
- package/dist/host-lists/sources/sspai.source.d.ts +9 -0
- package/dist/host-lists/sources/sspai.source.js +69 -0
- package/dist/host-lists/sources/sspai.source.js.map +1 -0
- package/dist/host-lists/sources/starrail.source.d.ts +9 -0
- package/dist/host-lists/sources/starrail.source.js +72 -0
- package/dist/host-lists/sources/starrail.source.js.map +1 -0
- package/dist/host-lists/sources/taobao.source.d.ts +10 -0
- package/dist/host-lists/sources/taobao.source.js +169 -0
- package/dist/host-lists/sources/taobao.source.js.map +1 -0
- package/dist/host-lists/sources/thepaper.source.d.ts +9 -0
- package/dist/host-lists/sources/thepaper.source.js +56 -0
- package/dist/host-lists/sources/thepaper.source.js.map +1 -0
- package/dist/host-lists/sources/tieba.source.d.ts +9 -0
- package/dist/host-lists/sources/tieba.source.js +58 -0
- package/dist/host-lists/sources/tieba.source.js.map +1 -0
- package/dist/host-lists/sources/tonghuashun.source.d.ts +9 -0
- package/dist/host-lists/sources/tonghuashun.source.js +112 -0
- package/dist/host-lists/sources/tonghuashun.source.js.map +1 -0
- package/dist/host-lists/sources/toutiao.source.d.ts +9 -0
- package/dist/host-lists/sources/toutiao.source.js +56 -0
- package/dist/host-lists/sources/toutiao.source.js.map +1 -0
- package/dist/host-lists/sources/v2ex.source.d.ts +9 -0
- package/dist/host-lists/sources/v2ex.source.js +67 -0
- package/dist/host-lists/sources/v2ex.source.js.map +1 -0
- package/dist/host-lists/sources/wallstreet.source.d.ts +9 -0
- package/dist/host-lists/sources/wallstreet.source.js +59 -0
- package/dist/host-lists/sources/wallstreet.source.js.map +1 -0
- package/dist/host-lists/sources/weatheralarm.source.d.ts +9 -0
- package/dist/host-lists/sources/weatheralarm.source.js +68 -0
- package/dist/host-lists/sources/weatheralarm.source.js.map +1 -0
- package/dist/host-lists/sources/weibo.source.d.ts +15 -0
- package/dist/host-lists/sources/weibo.source.js +180 -0
- package/dist/host-lists/sources/weibo.source.js.map +1 -0
- package/dist/host-lists/sources/weread.source.d.ts +9 -0
- package/dist/host-lists/sources/weread.source.js +82 -0
- package/dist/host-lists/sources/weread.source.js.map +1 -0
- package/dist/host-lists/sources/xinyu.source.d.ts +9 -0
- package/dist/host-lists/sources/xinyu.source.js +151 -0
- package/dist/host-lists/sources/xinyu.source.js.map +1 -0
- package/dist/host-lists/sources/yicai.source.d.ts +9 -0
- package/dist/host-lists/sources/yicai.source.js +113 -0
- package/dist/host-lists/sources/yicai.source.js.map +1 -0
- package/dist/host-lists/sources/yystv.source.d.ts +9 -0
- package/dist/host-lists/sources/yystv.source.js +57 -0
- package/dist/host-lists/sources/yystv.source.js.map +1 -0
- package/dist/host-lists/sources/zhihu-daily.source.d.ts +9 -0
- package/dist/host-lists/sources/zhihu-daily.source.js +60 -0
- package/dist/host-lists/sources/zhihu-daily.source.js.map +1 -0
- package/dist/host-lists/sources/zhihu.source.d.ts +12 -0
- package/dist/host-lists/sources/zhihu.source.js +195 -0
- package/dist/host-lists/sources/zhihu.source.js.map +1 -0
- package/dist/http/http.module.d.ts +2 -0
- package/dist/http/http.module.js +30 -0
- package/dist/http/http.module.js.map +1 -0
- package/dist/http/http.service.d.ts +53 -0
- package/dist/http/http.service.js +277 -0
- package/dist/http/http.service.js.map +1 -0
- package/dist/main.d.ts +3 -0
- package/dist/main.js +70 -0
- package/dist/main.js.map +1 -0
- package/dist/rss/rss.module.d.ts +2 -0
- package/dist/rss/rss.module.js +21 -0
- package/dist/rss/rss.module.js.map +1 -0
- package/dist/rss/rss.service.d.ts +5 -0
- package/dist/rss/rss.service.js +55 -0
- package/dist/rss/rss.service.js.map +1 -0
- package/dist/scheduler/dto/trigger-fetch.dto.d.ts +3 -0
- package/dist/scheduler/dto/trigger-fetch.dto.js +22 -0
- package/dist/scheduler/dto/trigger-fetch.dto.js.map +1 -0
- package/dist/scheduler/dto/update-source-config.dto.d.ts +4 -0
- package/dist/scheduler/dto/update-source-config.dto.js +29 -0
- package/dist/scheduler/dto/update-source-config.dto.js.map +1 -0
- package/dist/scheduler/scheduler.controller.d.ts +52 -0
- package/dist/scheduler/scheduler.controller.js +132 -0
- package/dist/scheduler/scheduler.controller.js.map +1 -0
- package/dist/scheduler/scheduler.module.d.ts +2 -0
- package/dist/scheduler/scheduler.module.js +34 -0
- package/dist/scheduler/scheduler.module.js.map +1 -0
- package/dist/scheduler/scheduler.service.d.ts +54 -0
- package/dist/scheduler/scheduler.service.js +238 -0
- package/dist/scheduler/scheduler.service.js.map +1 -0
- package/dist/scheduler/tasks/fetch-hot-data.task.d.ts +34 -0
- package/dist/scheduler/tasks/fetch-hot-data.task.js +175 -0
- package/dist/scheduler/tasks/fetch-hot-data.task.js.map +1 -0
- package/dist/token/coolapk.d.ts +11 -0
- package/dist/token/coolapk.js +40 -0
- package/dist/token/coolapk.js.map +1 -0
- package/dist/token/token.module.d.ts +2 -0
- package/dist/token/token.module.js +23 -0
- package/dist/token/token.module.js.map +1 -0
- package/dist/token/token.service.d.ts +19 -0
- package/dist/token/token.service.js +115 -0
- package/dist/token/token.service.js.map +1 -0
- package/dist/token/tools.d.ts +1 -0
- package/dist/token/tools.js +15 -0
- package/dist/token/tools.js.map +1 -0
- package/dist/token/weread.d.ts +2 -0
- package/dist/token/weread.js +55 -0
- package/dist/token/weread.js.map +1 -0
- package/dist/utils/getNum.d.ts +1 -0
- package/dist/utils/getNum.js +20 -0
- package/dist/utils/getNum.js.map +1 -0
- package/dist/utils/getTime.d.ts +11 -0
- package/dist/utils/getTime.js +134 -0
- package/dist/utils/getTime.js.map +1 -0
- package/dist/utils/headers.d.ts +16 -0
- package/dist/utils/headers.js +20 -0
- package/dist/utils/headers.js.map +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +12 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/parseRSS.d.ts +11 -0
- package/dist/utils/parseRSS.js +47 -0
- package/dist/utils/parseRSS.js.map +1 -0
- package/package.json +148 -4
- package/views/home.hbs +65 -0
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
21
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
22
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23
|
+
};
|
|
24
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
25
|
+
var ownKeys = function(o) {
|
|
26
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
27
|
+
var ar = [];
|
|
28
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
29
|
+
return ar;
|
|
30
|
+
};
|
|
31
|
+
return ownKeys(o);
|
|
32
|
+
};
|
|
33
|
+
return function (mod) {
|
|
34
|
+
if (mod && mod.__esModule) return mod;
|
|
35
|
+
var result = {};
|
|
36
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
37
|
+
__setModuleDefault(result, mod);
|
|
38
|
+
return result;
|
|
39
|
+
};
|
|
40
|
+
})();
|
|
41
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
42
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
43
|
+
};
|
|
44
|
+
var WeiboSource_1;
|
|
45
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
+
exports.WeiboSource = void 0;
|
|
47
|
+
const common_1 = require("@nestjs/common");
|
|
48
|
+
const hot_source_decorator_1 = require("../decorators/hot-source.decorator");
|
|
49
|
+
const http_service_1 = require("../../http/http.service");
|
|
50
|
+
const cheerio = __importStar(require("cheerio"));
|
|
51
|
+
const common_2 = require("@nestjs/common");
|
|
52
|
+
let WeiboSource = WeiboSource_1 = class WeiboSource {
|
|
53
|
+
constructor(httpService) {
|
|
54
|
+
this.httpService = httpService;
|
|
55
|
+
this.logger = new common_2.Logger(WeiboSource_1.name);
|
|
56
|
+
}
|
|
57
|
+
generateWeiboCookies() {
|
|
58
|
+
const sub = this.generateSUB();
|
|
59
|
+
const subp = this.generateSUBP();
|
|
60
|
+
const srf = this.generateSRF();
|
|
61
|
+
return `SUB=${sub}; SUBP=${subp}; SRF=${srf}`;
|
|
62
|
+
}
|
|
63
|
+
generateSUB() {
|
|
64
|
+
const timestamp = Date.now();
|
|
65
|
+
const random1 = Math.random().toString(36).substring(2, 15);
|
|
66
|
+
const random2 = Math.random().toString(36).substring(2, 15);
|
|
67
|
+
return `${random1}${timestamp}${random2}`;
|
|
68
|
+
}
|
|
69
|
+
generateSUBP() {
|
|
70
|
+
return '0033WrSXqPxfM725Ws9jqgMF55529P9D9W5...';
|
|
71
|
+
}
|
|
72
|
+
generateSRF() {
|
|
73
|
+
return Math.random().toString(36).substring(2, 20);
|
|
74
|
+
}
|
|
75
|
+
async getWeiboCookies() {
|
|
76
|
+
try {
|
|
77
|
+
await this.httpService.get({
|
|
78
|
+
url: 'https://weibo.com',
|
|
79
|
+
responseType: 'text',
|
|
80
|
+
headers: {
|
|
81
|
+
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36',
|
|
82
|
+
},
|
|
83
|
+
});
|
|
84
|
+
const generatedCookies = this.generateWeiboCookies();
|
|
85
|
+
return generatedCookies;
|
|
86
|
+
}
|
|
87
|
+
catch (error) {
|
|
88
|
+
this.logger.error(`获取微博Cookie失败: ${error}`);
|
|
89
|
+
return this.generateWeiboCookies();
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
async getList(options = {}, noCache) {
|
|
93
|
+
const url = 'https://s.weibo.com/top/summary';
|
|
94
|
+
const cookies = await this.getWeiboCookies();
|
|
95
|
+
const htmlResp = await this.httpService.get({
|
|
96
|
+
url,
|
|
97
|
+
noCache: noCache ?? options.noCache,
|
|
98
|
+
ttl: 60,
|
|
99
|
+
responseType: 'text',
|
|
100
|
+
headers: {
|
|
101
|
+
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36',
|
|
102
|
+
Referer: 'https://s.weibo.com/top/summary',
|
|
103
|
+
Cookie: cookies,
|
|
104
|
+
Accept: 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
|
|
105
|
+
'Accept-Language': 'zh-CN,zh;q=0.9,en;q=0.8',
|
|
106
|
+
'Accept-Encoding': 'gzip, deflate, br',
|
|
107
|
+
Connection: 'keep-alive',
|
|
108
|
+
'Upgrade-Insecure-Requests': '1',
|
|
109
|
+
},
|
|
110
|
+
});
|
|
111
|
+
const rawHtml = htmlResp.data;
|
|
112
|
+
const $ = cheerio.load(rawHtml);
|
|
113
|
+
const list = [];
|
|
114
|
+
const selectors = [
|
|
115
|
+
'#pl_top_realtimehot table tbody tr',
|
|
116
|
+
'.data tbody tr',
|
|
117
|
+
'.list_a li',
|
|
118
|
+
'.hot_list li',
|
|
119
|
+
];
|
|
120
|
+
let found = false;
|
|
121
|
+
for (const selector of selectors) {
|
|
122
|
+
const elements = $(selector);
|
|
123
|
+
if (elements.length > 0) {
|
|
124
|
+
this.logger.log(`使用选择器: ${selector}, 找到 ${elements.length} 个元素`);
|
|
125
|
+
found = true;
|
|
126
|
+
elements.each((i, el) => {
|
|
127
|
+
if (i === 0)
|
|
128
|
+
return;
|
|
129
|
+
const tds = $(el).find('td');
|
|
130
|
+
if (tds.length === 0)
|
|
131
|
+
return;
|
|
132
|
+
const rank = $(tds[0]).text().trim();
|
|
133
|
+
const title = $(tds[1]).find('a').text().trim();
|
|
134
|
+
const href = $(tds[1]).find('a').attr('href');
|
|
135
|
+
const url = href ? 'https://s.weibo.com' + href : '';
|
|
136
|
+
const hot = parseInt($(tds[1]).find('span').text().replace(/[^\d]/g, '')) ||
|
|
137
|
+
undefined;
|
|
138
|
+
const desc = $(tds[1]).find('p').text().trim();
|
|
139
|
+
const icon = $(tds[1]).find('img').attr('alt') || '';
|
|
140
|
+
if (title) {
|
|
141
|
+
list.push({
|
|
142
|
+
id: rank || title,
|
|
143
|
+
title,
|
|
144
|
+
desc: desc || icon || title,
|
|
145
|
+
author: icon,
|
|
146
|
+
timestamp: Date.now(),
|
|
147
|
+
hot,
|
|
148
|
+
url,
|
|
149
|
+
mobileUrl: url,
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
break;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
if (!found) {
|
|
157
|
+
this.logger.warn('未找到热搜榜数据,可能需要更新选择器或Cookie');
|
|
158
|
+
}
|
|
159
|
+
return {
|
|
160
|
+
data: list,
|
|
161
|
+
type: '热搜榜',
|
|
162
|
+
description: '实时热点,每分钟更新一次',
|
|
163
|
+
fromCache: htmlResp.fromCache,
|
|
164
|
+
updateTime: htmlResp.updateTime,
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
exports.WeiboSource = WeiboSource;
|
|
169
|
+
exports.WeiboSource = WeiboSource = WeiboSource_1 = __decorate([
|
|
170
|
+
(0, common_1.Injectable)(),
|
|
171
|
+
(0, hot_source_decorator_1.HotSource)({
|
|
172
|
+
name: 'weibo',
|
|
173
|
+
title: '微博',
|
|
174
|
+
type: '热搜榜',
|
|
175
|
+
link: 'https://s.weibo.com/top/summary/',
|
|
176
|
+
description: '实时热点,每分钟更新一次',
|
|
177
|
+
}),
|
|
178
|
+
__metadata("design:paramtypes", [http_service_1.HttpClientService])
|
|
179
|
+
], WeiboSource);
|
|
180
|
+
//# sourceMappingURL=weibo.source.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"weibo.source.js","sourceRoot":"","sources":["../../../src/host-lists/sources/weibo.source.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6EAA+D;AAM/D,0DAA4D;AAE5D,iDAAmC;AACnC,2CAAwC;AAUjC,IAAM,WAAW,mBAAjB,MAAM,WAAW;IAGtB,YAA6B,WAA8B;QAA9B,gBAAW,GAAX,WAAW,CAAmB;QAF1C,WAAM,GAAG,IAAI,eAAM,CAAC,aAAW,CAAC,IAAI,CAAC,CAAC;IAEO,CAAC;IAKvD,oBAAoB;QAE1B,MAAM,GAAG,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;QAE/B,MAAM,IAAI,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;QAEjC,MAAM,GAAG,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;QAE/B,OAAO,OAAO,GAAG,UAAU,I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,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;4BACrB,GAAG;4BACH,GAAG;4BACH,SAAS,EAAE,GAAG;yBACf,CAAC,CAAC;oBACL,CAAC;gBACH,CAAC,CAAC,CAAC;gBACH,MAAM;YACR,CAAC;QACH,CAAC;QAED,IAAI,CAAC,KAAK,EAAE,CAAC;YACX,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,2BAA2B,CAAC,CAAC;QAChD,CAAC;QAED,OAAO;YACL,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,KAAK;YACX,WAAW,EAAE,cAAc;YAC3B,SAAS,EAAE,QAAQ,CAAC,SAAS;YAC7B,UAAU,EAAE,QAAQ,CAAC,UAAU;SAChC,CAAC;IACJ,CAAC;CACF,CAAA;AAtKY,kCAAW;sBAAX,WAAW;IARvB,IAAA,mBAAU,GAAE;IACZ,IAAA,gCAAS,EAAC;QACT,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,IAAI;QACX,IAAI,EAAE,KAAK;QACX,IAAI,EAAE,kCAAkC;QACxC,WAAW,EAAE,cAAc;KAC5B,CAAC;qCAI0C,gCAAiB;GAHhD,WAAW,CAsKvB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HotListSource } from '../interfaces/hot-list-source.interface';
|
|
2
|
+
import { HotListGetListResponse } from '../interfaces/hot-list.interface';
|
|
3
|
+
import { HttpClientService } from '../../http/http.service';
|
|
4
|
+
import { GetListOptions } from './source.types';
|
|
5
|
+
export declare class WereadSource implements HotListSource {
|
|
6
|
+
private readonly httpService;
|
|
7
|
+
constructor(httpService: HttpClientService);
|
|
8
|
+
getList(options?: GetListOptions, noCache?: boolean): Promise<HotListGetListResponse>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.WereadSource = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const hot_source_decorator_1 = require("../decorators/hot-source.decorator");
|
|
18
|
+
const http_service_1 = require("../../http/http.service");
|
|
19
|
+
const getTime_1 = require("../../utils/getTime");
|
|
20
|
+
const weread_1 = __importDefault(require("../../token/weread"));
|
|
21
|
+
const typeMap = {
|
|
22
|
+
rising: '飙升榜',
|
|
23
|
+
hot_search: '热搜榜',
|
|
24
|
+
newbook: '新书榜',
|
|
25
|
+
general_novel_rising: '小说榜',
|
|
26
|
+
all: '总榜',
|
|
27
|
+
};
|
|
28
|
+
let WereadSource = class WereadSource {
|
|
29
|
+
constructor(httpService) {
|
|
30
|
+
this.httpService = httpService;
|
|
31
|
+
}
|
|
32
|
+
async getList(options = {}, noCache) {
|
|
33
|
+
const type = options.type || 'rising';
|
|
34
|
+
const url = `https://weread.qq.com/web/bookListInCategory/${type}?rank=1`;
|
|
35
|
+
const result = await this.httpService.get({
|
|
36
|
+
url,
|
|
37
|
+
noCache: noCache ?? options.noCache,
|
|
38
|
+
headers: {
|
|
39
|
+
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.67',
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
const list = result?.data?.books || [];
|
|
43
|
+
const data = list.map((v) => {
|
|
44
|
+
const book = v.bookInfo;
|
|
45
|
+
return {
|
|
46
|
+
id: book.bookId,
|
|
47
|
+
title: book.title,
|
|
48
|
+
author: book.author,
|
|
49
|
+
desc: book.intro,
|
|
50
|
+
cover: book.cover.replace('s_', 't9_'),
|
|
51
|
+
timestamp: (0, getTime_1.getTime)(book.publishTime),
|
|
52
|
+
hot: v.readingCount,
|
|
53
|
+
url: `https://weread.qq.com/web/bookDetail/${(0, weread_1.default)(book.bookId)}`,
|
|
54
|
+
mobileUrl: `https://weread.qq.com/web/bookDetail/${(0, weread_1.default)(book.bookId)}`,
|
|
55
|
+
};
|
|
56
|
+
});
|
|
57
|
+
return {
|
|
58
|
+
data,
|
|
59
|
+
type: typeMap[type] || '排行榜',
|
|
60
|
+
params: {
|
|
61
|
+
type: {
|
|
62
|
+
name: '排行榜分区',
|
|
63
|
+
type: typeMap,
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
fromCache: result.fromCache,
|
|
67
|
+
updateTime: result.updateTime,
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
exports.WereadSource = WereadSource;
|
|
72
|
+
exports.WereadSource = WereadSource = __decorate([
|
|
73
|
+
(0, common_1.Injectable)(),
|
|
74
|
+
(0, hot_source_decorator_1.HotSource)({
|
|
75
|
+
name: 'weread',
|
|
76
|
+
title: '微信读书',
|
|
77
|
+
type: '排行榜',
|
|
78
|
+
link: 'https://weread.qq.com/',
|
|
79
|
+
}),
|
|
80
|
+
__metadata("design:paramtypes", [http_service_1.HttpClientService])
|
|
81
|
+
], WereadSource);
|
|
82
|
+
//# sourceMappingURL=weread.source.js.map
|
|
@@ -0,0 +1 @@
|
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K,CAAC;gBACtC,SAAS,EAAE,IAAA,iBAAO,EAAC,IAAI,CAAC,WAAW,CAAC;gBACpC,GAAG,EAAE,CAAC,CAAC,YAAY;gBACnB,GAAG,EAAE,wCAAwC,IAAA,gBAAW,EAAC,IAAI,CAAC,MAAM,CAAC,EAAE;gBACvE,SAAS,EAAE,wCAAwC,IAAA,gBAAW,EAAC,IAAI,CAAC,MAAM,CAAC,EAAE;aAC9E,CAAC;QACJ,CAAC,CAAC,CAAC;QACH,OAAO;YACL,IAAI;YACJ,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,IAAI,KAAK;YAC5B,MAAM,EAAE;gBACN,IAAI,EAAE;oBACJ,IAAI,EAAE,OAAO;oBACb,IAAI,EAAE,OAAO;iBACd;aACF;YACD,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,UAAU,EAAE,MAAM,CAAC,UAAU;SAC9B,CAAC;IACJ,CAAC;CACF,CAAA;AA7CY,oCAAY;uBAAZ,YAAY;IAPxB,IAAA,mBAAU,GAAE;IACZ,IAAA,gCAAS,EAAC;QACT,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,MAAM;QACb,IAAI,EAAE,KAAK;QACX,IAAI,EAAE,wBAAwB;KAC/B,CAAC;qCAE0C,gCAAiB;GADhD,YAAY,CA6CxB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HotListSource } from '../interfaces/hot-list-source.interface';
|
|
2
|
+
import { HotListGetListResponse } from '../interfaces/hot-list.interface';
|
|
3
|
+
import { HttpClientService } from '../../http/http.service';
|
|
4
|
+
import { GetListOptions } from './source.types';
|
|
5
|
+
export declare class XinyuSource implements HotListSource {
|
|
6
|
+
private readonly httpService;
|
|
7
|
+
constructor(httpService: HttpClientService);
|
|
8
|
+
getList(options?: GetListOptions, noCache?: boolean): Promise<HotListGetListResponse>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.XinyuSource = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const cheerio_1 = require("cheerio");
|
|
15
|
+
const hot_source_decorator_1 = require("../decorators/hot-source.decorator");
|
|
16
|
+
const http_service_1 = require("../../http/http.service");
|
|
17
|
+
const getTime_1 = require("../../utils/getTime");
|
|
18
|
+
const headers_1 = require("../../utils/headers");
|
|
19
|
+
const SITE_URL = 'https://www.eet-china.com';
|
|
20
|
+
const LIST_URL = `${SITE_URL}/mp`;
|
|
21
|
+
const DEFAULT_TYPE_MAP = {
|
|
22
|
+
newest: '最新',
|
|
23
|
+
c1: '半导体',
|
|
24
|
+
c2: '通信网络',
|
|
25
|
+
c3: '消费电子/手机',
|
|
26
|
+
c4: '汽车电子',
|
|
27
|
+
c5: '物联网',
|
|
28
|
+
c6: '工控',
|
|
29
|
+
c7: '硬件设计',
|
|
30
|
+
c8: '嵌入式/FPGA',
|
|
31
|
+
c9: '电源/能源',
|
|
32
|
+
c10: '测试测量',
|
|
33
|
+
c11: '人工智能/机器人',
|
|
34
|
+
c12: '科技前沿',
|
|
35
|
+
c13: '供应链',
|
|
36
|
+
c14: '工程师职场',
|
|
37
|
+
c15: '芯片制造封装',
|
|
38
|
+
};
|
|
39
|
+
const getUrl = (href) => {
|
|
40
|
+
if (!href)
|
|
41
|
+
return '';
|
|
42
|
+
try {
|
|
43
|
+
return new URL(href, SITE_URL).toString();
|
|
44
|
+
}
|
|
45
|
+
catch {
|
|
46
|
+
return href;
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
const getId = (url) => {
|
|
50
|
+
const match = url.match(/\/mp\/a(\d+)\.html/);
|
|
51
|
+
return match?.[1] || url.match(/([^/]+)$/)?.[1] || url;
|
|
52
|
+
};
|
|
53
|
+
const getBackgroundImageUrl = (style) => {
|
|
54
|
+
if (!style)
|
|
55
|
+
return undefined;
|
|
56
|
+
return style.match(/background-image:\s*url\((['"]?)(.*?)\1\)/)?.[2];
|
|
57
|
+
};
|
|
58
|
+
const getTypeKeyFromUrl = (href) => {
|
|
59
|
+
const url = getUrl(href);
|
|
60
|
+
const match = url.match(/\/mp\/(c\d+)\/?$/);
|
|
61
|
+
return match?.[1] || 'newest';
|
|
62
|
+
};
|
|
63
|
+
const getListUrl = (type) => {
|
|
64
|
+
const selectedType = Object.entries(DEFAULT_TYPE_MAP).find(([, title]) => title === type)?.[0] ||
|
|
65
|
+
type ||
|
|
66
|
+
'newest';
|
|
67
|
+
return selectedType === 'newest'
|
|
68
|
+
? LIST_URL
|
|
69
|
+
: `${LIST_URL}/${selectedType.replace(/^\//, '')}`;
|
|
70
|
+
};
|
|
71
|
+
let XinyuSource = class XinyuSource {
|
|
72
|
+
constructor(httpService) {
|
|
73
|
+
this.httpService = httpService;
|
|
74
|
+
}
|
|
75
|
+
async getList(options = {}, noCache) {
|
|
76
|
+
const url = getListUrl(options.type);
|
|
77
|
+
const result = await this.httpService.get({
|
|
78
|
+
url,
|
|
79
|
+
noCache: noCache ?? options.noCache,
|
|
80
|
+
headers: {
|
|
81
|
+
...headers_1.headers,
|
|
82
|
+
Referer: SITE_URL,
|
|
83
|
+
},
|
|
84
|
+
});
|
|
85
|
+
const $ = (0, cheerio_1.load)(result.data);
|
|
86
|
+
const typeMap = $('.channel-list-seat a')
|
|
87
|
+
.toArray()
|
|
88
|
+
.reduce((map, item) => {
|
|
89
|
+
const title = $(item).text().replace(/\s+/g, ' ').trim();
|
|
90
|
+
const type = getTypeKeyFromUrl($(item).attr('href'));
|
|
91
|
+
if (title) {
|
|
92
|
+
map[type] = title;
|
|
93
|
+
}
|
|
94
|
+
return map;
|
|
95
|
+
}, {});
|
|
96
|
+
const data = $('.new-list li')
|
|
97
|
+
.toArray()
|
|
98
|
+
.map((item) => {
|
|
99
|
+
const dom = $(item);
|
|
100
|
+
const titleDom = dom.find('.new-title a').first();
|
|
101
|
+
const href = titleDom.attr('href');
|
|
102
|
+
const url = getUrl(href);
|
|
103
|
+
const authorDom = dom.find('.new-relevant .write').first().clone();
|
|
104
|
+
authorDom.find('strong,img').remove();
|
|
105
|
+
const relevantSpans = dom.find('.new-relevant span').toArray();
|
|
106
|
+
const dateText = relevantSpans
|
|
107
|
+
.map((span) => $(span).text().trim())
|
|
108
|
+
.find((text) => /^\d{4}-\d{2}-\d{2}/.test(text)) || '';
|
|
109
|
+
const viewText = relevantSpans
|
|
110
|
+
.map((span) => $(span).text().trim())
|
|
111
|
+
.find((text) => text.includes('浏览')) || '';
|
|
112
|
+
return {
|
|
113
|
+
id: getId(url),
|
|
114
|
+
title: titleDom.text().replace(/\s+/g, ' ').trim(),
|
|
115
|
+
cover: getBackgroundImageUrl(dom.find('.thepic').attr('style')),
|
|
116
|
+
author: authorDom.text().replace(/\s+/g, ' ').trim() || undefined,
|
|
117
|
+
timestamp: dateText ? (0, getTime_1.getTime)(dateText) : undefined,
|
|
118
|
+
hot: Number(viewText.replace(/\D/g, '')) || undefined,
|
|
119
|
+
url,
|
|
120
|
+
mobileUrl: url,
|
|
121
|
+
};
|
|
122
|
+
})
|
|
123
|
+
.filter((item) => item.title && item.url);
|
|
124
|
+
return {
|
|
125
|
+
data,
|
|
126
|
+
type: (options.type && DEFAULT_TYPE_MAP[options.type]) ||
|
|
127
|
+
options.type ||
|
|
128
|
+
'最新',
|
|
129
|
+
params: {
|
|
130
|
+
type: {
|
|
131
|
+
name: '类目',
|
|
132
|
+
type: Object.keys(typeMap).length ? typeMap : DEFAULT_TYPE_MAP,
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
fromCache: result.fromCache,
|
|
136
|
+
updateTime: result.updateTime,
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
exports.XinyuSource = XinyuSource;
|
|
141
|
+
exports.XinyuSource = XinyuSource = __decorate([
|
|
142
|
+
(0, common_1.Injectable)(),
|
|
143
|
+
(0, hot_source_decorator_1.HotSource)({
|
|
144
|
+
name: 'xinyu',
|
|
145
|
+
title: '芯语',
|
|
146
|
+
type: '最新',
|
|
147
|
+
link: LIST_URL,
|
|
148
|
+
}),
|
|
149
|
+
__metadata("design:paramtypes", [http_service_1.HttpClientService])
|
|
150
|
+
], XinyuSource);
|
|
151
|
+
//# sourceMappingURL=xinyu.source.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xinyu.source.js","sourceRoot":"","sources":["../../../src/host-lists/sources/xinyu.source.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,qCAA+B;AAC/B,6EAA+D;AAG/D,0DAA4D;AAE5D,iDAA4C;AAC5C,iDAA4C;AAE5C,MAAM,QAAQ,GAAG,2BAA2B,CAAC;AAC7C,MAAM,QAAQ,GAAG,GAAG,QAAQ,KAAK,CAAC;AAClC,MAAM,gBAAgB,GAA2B;IAC/C,MAAM,EAAE,IAAI;IACZ,EAAE,EAAE,KAAK;IACT,EAAE,EAAE,MAAM;IACV,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,MAAM;IACV,EAAE,EAAE,KAAK;IACT,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,MAAM;IACV,EAAE,EAAE,UAAU;IACd,EAAE,EA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,CAAC;CACF,CAAA;AA9EY,kCAAW;sBAAX,WAAW;IAPvB,IAAA,mBAAU,GAAE;IACZ,IAAA,gCAAS,EAAC;QACT,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,IAAI;QACX,IAAI,EAAE,IAAI;QACV,IAAI,EAAE,QAAQ;KACf,CAAC;qCAE0C,gCAAiB;GADhD,WAAW,CA8EvB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HotListSource } from '../interfaces/hot-list-source.interface';
|
|
2
|
+
import { HotListGetListResponse } from '../interfaces/hot-list.interface';
|
|
3
|
+
import { HttpClientService } from '../../http/http.service';
|
|
4
|
+
import { GetListOptions } from './source.types';
|
|
5
|
+
export declare class YicaiSource implements HotListSource {
|
|
6
|
+
private readonly httpService;
|
|
7
|
+
constructor(httpService: HttpClientService);
|
|
8
|
+
getList(options?: GetListOptions, noCache?: boolean): Promise<HotListGetListResponse>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
21
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
22
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23
|
+
};
|
|
24
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
25
|
+
var ownKeys = function(o) {
|
|
26
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
27
|
+
var ar = [];
|
|
28
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
29
|
+
return ar;
|
|
30
|
+
};
|
|
31
|
+
return ownKeys(o);
|
|
32
|
+
};
|
|
33
|
+
return function (mod) {
|
|
34
|
+
if (mod && mod.__esModule) return mod;
|
|
35
|
+
var result = {};
|
|
36
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
37
|
+
__setModuleDefault(result, mod);
|
|
38
|
+
return result;
|
|
39
|
+
};
|
|
40
|
+
})();
|
|
41
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
42
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
43
|
+
};
|
|
44
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
|
+
exports.YicaiSource = void 0;
|
|
46
|
+
const common_1 = require("@nestjs/common");
|
|
47
|
+
const hot_source_decorator_1 = require("../decorators/hot-source.decorator");
|
|
48
|
+
const http_service_1 = require("../../http/http.service");
|
|
49
|
+
const cheerio = __importStar(require("cheerio"));
|
|
50
|
+
const headers_1 = require("../../utils/headers");
|
|
51
|
+
let YicaiSource = class YicaiSource {
|
|
52
|
+
constructor(httpService) {
|
|
53
|
+
this.httpService = httpService;
|
|
54
|
+
}
|
|
55
|
+
async getList(options = {}, noCache) {
|
|
56
|
+
const url = 'https://www.yicai.com/';
|
|
57
|
+
const result = await this.httpService.get({
|
|
58
|
+
url,
|
|
59
|
+
noCache: noCache ?? options.noCache,
|
|
60
|
+
headers: {
|
|
61
|
+
...headers_1.headers,
|
|
62
|
+
Referer: 'https://www.yicai.com/',
|
|
63
|
+
},
|
|
64
|
+
});
|
|
65
|
+
const $ = cheerio.load(result?.data);
|
|
66
|
+
const list = [];
|
|
67
|
+
$('#headlist a').each((index, element) => {
|
|
68
|
+
const title = $(element).find('h2').text().trim();
|
|
69
|
+
const link = $(element).attr('href');
|
|
70
|
+
const imgSrc = $(element).find('img').attr('src');
|
|
71
|
+
const description = $(element).find('p').text().trim();
|
|
72
|
+
const time = $(element).find('.rightspan span:last-child').text().trim();
|
|
73
|
+
const hot = Number($(element).find('.news_hot').text().trim());
|
|
74
|
+
list.push({
|
|
75
|
+
title,
|
|
76
|
+
link,
|
|
77
|
+
imgSrc,
|
|
78
|
+
description,
|
|
79
|
+
time,
|
|
80
|
+
hot,
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
const data = list.map((v) => ({
|
|
84
|
+
id: v.link?.match(/\d+/)?.[0] || '',
|
|
85
|
+
title: v.title,
|
|
86
|
+
cover: v.imgSrc || undefined,
|
|
87
|
+
desc: v.description,
|
|
88
|
+
author: undefined,
|
|
89
|
+
timestamp: Date.now(),
|
|
90
|
+
hot: v.hot,
|
|
91
|
+
url: `https://www.yicai.com${v.link}`,
|
|
92
|
+
mobileUrl: `https://www.yicai.com${v.link}`,
|
|
93
|
+
}));
|
|
94
|
+
return {
|
|
95
|
+
data,
|
|
96
|
+
fromCache: result.fromCache,
|
|
97
|
+
updateTime: result.updateTime,
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
exports.YicaiSource = YicaiSource;
|
|
102
|
+
exports.YicaiSource = YicaiSource = __decorate([
|
|
103
|
+
(0, common_1.Injectable)(),
|
|
104
|
+
(0, hot_source_decorator_1.HotSource)({
|
|
105
|
+
name: 'yicai',
|
|
106
|
+
title: '第一财经',
|
|
107
|
+
type: '头条',
|
|
108
|
+
link: 'https://www.yicai.com/',
|
|
109
|
+
description: '头条',
|
|
110
|
+
}),
|
|
111
|
+
__metadata("design:paramtypes", [http_service_1.HttpClientService])
|
|
112
|
+
], YicaiSource);
|
|
113
|
+
//# sourceMappingURL=yicai.source.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"yicai.source.js","sourceRoot":"","sources":["../../../src/host-lists/sources/yicai.source.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6EAA+D;AAM/D,0DAA4D;AAE5D,iDAAmC;AACnC,iDAA4C;AAUrC,IAAM,WAAW,GAAjB,MAAM,WAAW;IACtB,YAA6B,WAA8B;QAA9B,gBAAW,GAAX,WAAW,CAAmB;IAAG,CAAC;IAE/D,KAAK,CAAC,OAAO,CACX,UAA0B,EAAE,EAC5B,OAAiB;QAEjB,MAAM,GAAG,GAAG,wBAAwB,CAAC;QACrC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,GAAG,CAAS;YAChD,GAAG;YACH,OAAO,EAAE,OAAO,IAAI,OAAO,CAAC,OAAO;YACnC,OAAO,EAAE;gBACP,GAAG,iBAAO;gBACV,OAAO,EAAE,wBAAwB;aAClC;SACF,CAAC,CAAC;QACH,MAAM,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QACrC,MAAM,IAAI,GAA0B,EAAE,CAAC;QACvC,CAAC,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE;YACvC,MAAM,KAAK,GAAG,CA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ACV,GAAG,EAAE,wBAAwB,CAAC,CAAC,IAAI,EAAE;YACrC,SAAS,EAAE,wBAAwB,CAAC,CAAC,IAAI,EAAE;SAC5C,CAAC,CAAC,CAAC;QACJ,OAAO;YACL,IAAI;YACJ,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,UAAU,EAAE,MAAM,CAAC,UAAU;SAC9B,CAAC;IACJ,CAAC;CACF,CAAA;AAnDY,kCAAW;sBAAX,WAAW;IARvB,IAAA,mBAAU,GAAE;IACZ,IAAA,gCAAS,EAAC;QACT,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,MAAM;QACb,IAAI,EAAE,IAAI;QACV,IAAI,EAAE,wBAAwB;QAC9B,WAAW,EAAE,IAAI;KAClB,CAAC;qCAE0C,gCAAiB;GADhD,WAAW,CAmDvB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HotListSource } from '../interfaces/hot-list-source.interface';
|
|
2
|
+
import { HotListGetListResponse } from '../interfaces/hot-list.interface';
|
|
3
|
+
import { HttpClientService } from '../../http/http.service';
|
|
4
|
+
import { GetListOptions } from './source.types';
|
|
5
|
+
export declare class YystvSource implements HotListSource {
|
|
6
|
+
private readonly httpService;
|
|
7
|
+
constructor(httpService: HttpClientService);
|
|
8
|
+
getList(options?: GetListOptions, noCache?: boolean): Promise<HotListGetListResponse>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.YystvSource = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const hot_source_decorator_1 = require("../decorators/hot-source.decorator");
|
|
15
|
+
const http_service_1 = require("../../http/http.service");
|
|
16
|
+
const getTime_1 = require("../../utils/getTime");
|
|
17
|
+
let YystvSource = class YystvSource {
|
|
18
|
+
constructor(httpService) {
|
|
19
|
+
this.httpService = httpService;
|
|
20
|
+
}
|
|
21
|
+
async getList(options = {}, noCache) {
|
|
22
|
+
const url = 'https://www.yystv.cn/home/get_home_docs_by_page';
|
|
23
|
+
const result = await this.httpService.get({
|
|
24
|
+
url,
|
|
25
|
+
noCache: noCache ?? options.noCache,
|
|
26
|
+
});
|
|
27
|
+
const list = result?.data?.data || [];
|
|
28
|
+
const data = list.map((v) => ({
|
|
29
|
+
id: v.id,
|
|
30
|
+
title: v.title,
|
|
31
|
+
cover: v.cover,
|
|
32
|
+
author: v.author,
|
|
33
|
+
hot: undefined,
|
|
34
|
+
timestamp: (0, getTime_1.getTime)(v.createtime),
|
|
35
|
+
url: `https://www.yystv.cn/p/${v.id}`,
|
|
36
|
+
mobileUrl: `https://www.yystv.cn/p/${v.id}`,
|
|
37
|
+
}));
|
|
38
|
+
return {
|
|
39
|
+
data,
|
|
40
|
+
fromCache: result.fromCache,
|
|
41
|
+
updateTime: result.updateTime,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
exports.YystvSource = YystvSource;
|
|
46
|
+
exports.YystvSource = YystvSource = __decorate([
|
|
47
|
+
(0, common_1.Injectable)(),
|
|
48
|
+
(0, hot_source_decorator_1.HotSource)({
|
|
49
|
+
name: 'yystv',
|
|
50
|
+
title: '游研社',
|
|
51
|
+
type: '全部文章',
|
|
52
|
+
link: 'https://www.yystv.cn/docs',
|
|
53
|
+
description: '游研社是以游戏内容为主的新媒体,出品内容包括大量游戏、动漫有关的研究文章和社长聊街机、社长说、游研剧场、老四强等系列视频内容。',
|
|
54
|
+
}),
|
|
55
|
+
__metadata("design:paramtypes", [http_service_1.HttpClientService])
|
|
56
|
+
], YystvSource);
|
|
57
|
+
//# sourceMappingURL=yystv.source.js.map
|