Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(route): add 虎嗅频道 & 源流 #13945

Merged
merged 4 commits into from
Dec 4, 2023
Merged

Conversation

nczitzk
Copy link
Contributor

@nczitzk nczitzk commented Dec 3, 2023

Involved Issue / 该 PR 相关 Issue

Close #13912

Example for the Proposed Route(s) / 路由地址示例

/huxiu/channel/10
/huxiu/club/1000

New RSS Route Checklist / 新 RSS 路由检查表

  • New Route / 新的路由
  • Documentation / 文档说明
  • Full text / 全文获取
    • Use cache / 使用缓存
  • Anti-bot or rate limit / 反爬/频率限制
    • If yes, do your code reflect this sign? / 如果有, 是否有对应的措施?
  • Date and time / 日期和时间
    • Parsed / 可以解析
    • Correct time zone / 时区正确
  • New package added / 添加了新的包
  • Puppeteer

Note / 说明

@github-actions github-actions bot added the Route: v2 v2 route related label Dec 3, 2023
lib/v2/huxiu/util.js Fixed Show fixed Hide fixed
lib/v2/huxiu/util.js Dismissed Show dismissed Hide dismissed
lib/v2/huxiu/util.js Fixed Show fixed Hide fixed
@github-actions github-actions bot added the Auto: Route Test Complete Auto route test has finished on given PR label Dec 3, 2023
Copy link
Contributor

github-actions bot commented Dec 3, 2023

Successfully generated as following:

http://localhost:1200/huxiu/channel/10 - Failed ❌
HTTPError: Response code 404 (Not Found)

Route requested: /channel/10
Error message: RequestError: Timeout awaiting 'request' for 30000ms
    at ClientRequest.<anonymous> (/app/node_modules/.pnpm/got@11.8.6/node_modules/got/dist/source/core/index.js:970:65)
    at Object.onceWrapper (node:events:629:26)
    at ClientRequest.emit (node:events:526:35)
    at origin.emit (/app/node_modules/.pnpm/@szmarczak+http-timer@4.0.6/node_modules/@szmarczak/http-timer/dist/source/index.js:43:20)
    at TLSSocket.socketErrorListener (node:_http_client:495:9)
    at TLSSocket.emit (node:events:514:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
    at Timeout.timeoutHandler [as _onTimeout] (/app/node_modules/.pnpm/got@11.8.6/node_modules/got/dist/source/core/utils/timed-out.js:36:25)
    at listOnTimeout (node:internal/timers:575:11)
    at process.processTimers (node:internal/timers:514:7)
Helpful Information to provide when opening issue:
Path: /channel/10
Node version: v20.10.0
Git Hash: c71ce2c
http://localhost:1200/huxiu/club/1000 - Failed ❌
HTTPError: Response code 404 (Not Found)

Route requested: /club/1000
Error message: RequestError: Timeout awaiting 'request' for 30000ms
    at ClientRequest.<anonymous> (/app/node_modules/.pnpm/got@11.8.6/node_modules/got/dist/source/core/index.js:970:65)
    at Object.onceWrapper (node:events:629:26)
    at ClientRequest.emit (node:events:526:35)
    at origin.emit (/app/node_modules/.pnpm/@szmarczak+http-timer@4.0.6/node_modules/@szmarczak/http-timer/dist/source/index.js:43:20)
    at TLSSocket.socketErrorListener (node:_http_client:495:9)
    at TLSSocket.emit (node:events:514:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
    at Timeout.timeoutHandler [as _onTimeout] (/app/node_modules/.pnpm/got@11.8.6/node_modules/got/dist/source/core/utils/timed-out.js:36:25)
    at listOnTimeout (node:internal/timers:575:11)
    at process.processTimers (node:internal/timers:514:7)
Helpful Information to provide when opening issue:
Path: /club/1000
Node version: v20.10.0
Git Hash: c71ce2c

Copy link
Contributor

github-actions bot commented Dec 3, 2023

Successfully generated as following:

http://localhost:1200/huxiu/channel/10 - Failed ❌
HTTPError: Response code 404 (Not Found)

Route requested: /channel/10
Error message: RequestError: Timeout awaiting 'request' for 30000ms
    at ClientRequest.<anonymous> (/app/node_modules/.pnpm/got@11.8.6/node_modules/got/dist/source/core/index.js:970:65)
    at Object.onceWrapper (node:events:629:26)
    at ClientRequest.emit (node:events:526:35)
    at origin.emit (/app/node_modules/.pnpm/@szmarczak+http-timer@4.0.6/node_modules/@szmarczak/http-timer/dist/source/index.js:43:20)
    at TLSSocket.socketErrorListener (node:_http_client:495:9)
    at TLSSocket.emit (node:events:514:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
    at Timeout.timeoutHandler [as _onTimeout] (/app/node_modules/.pnpm/got@11.8.6/node_modules/got/dist/source/core/utils/timed-out.js:36:25)
    at listOnTimeout (node:internal/timers:575:11)
    at process.processTimers (node:internal/timers:514:7)
Helpful Information to provide when opening issue:
Path: /channel/10
Node version: v20.10.0
Git Hash: 9eefb78
http://localhost:1200/huxiu/club/1000 - Failed ❌
HTTPError: Response code 404 (Not Found)

Route requested: /club/1000
Error message: RequestError: Timeout awaiting 'request' for 30000ms
    at ClientRequest.<anonymous> (/app/node_modules/.pnpm/got@11.8.6/node_modules/got/dist/source/core/index.js:970:65)
    at Object.onceWrapper (node:events:629:26)
    at ClientRequest.emit (node:events:526:35)
    at origin.emit (/app/node_modules/.pnpm/@szmarczak+http-timer@4.0.6/node_modules/@szmarczak/http-timer/dist/source/index.js:43:20)
    at TLSSocket.socketErrorListener (node:_http_client:495:9)
    at TLSSocket.emit (node:events:514:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
    at Timeout.timeoutHandler [as _onTimeout] (/app/node_modules/.pnpm/got@11.8.6/node_modules/got/dist/source/core/utils/timed-out.js:36:25)
    at listOnTimeout (node:internal/timers:575:11)
    at process.processTimers (node:internal/timers:514:7)
Helpful Information to provide when opening issue:
Path: /club/1000
Node version: v20.10.0
Git Hash: 9eefb78

@@ -1,9 +1,12 @@
module.exports = (router) => {
router.get('/article', require('./article'));
router.get('/author/:id', require('./author'));
router.get('/article/:id?', require('./channel'));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
router.get('/article/:id?', require('./channel'));
router.get('/article', require('./channel'));

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for reviews. 😊


<Route author="HenryQW" example="/huxiu/article" path="/huxiu/article" />
<Route author="HenryQW nczitzk" example="/huxiu/article" path="/huxiu/article" radar="1" rssbud="1" supportBT="1" supportPodcast="1"/>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove all rssbud="1" in the docs.
a975237

Copy link
Contributor

github-actions bot commented Dec 4, 2023

Successfully generated as following:

http://localhost:1200/huxiu/channel/10 - Failed ❌
HTTPError: Response code 404 (Not Found)

Route requested: /channel/10
Error message: read ECONNRESET: target website might be blocking our access, you can <a href="https://docs.rsshub.app/install/">host your own RSSHub instance</a> for a better usability.
Helpful Information to provide when opening issue:
Path: /channel/10
Node version: v20.10.0
Git Hash: 3c02275
http://localhost:1200/huxiu/club/1000 - Failed ❌
HTTPError: Response code 404 (Not Found)

Route requested: /club/1000
Error message: RequestError: Timeout awaiting 'request' for 30000ms
    at ClientRequest.<anonymous> (/app/node_modules/.pnpm/got@11.8.6/node_modules/got/dist/source/core/index.js:970:65)
    at Object.onceWrapper (node:events:629:26)
    at ClientRequest.emit (node:events:526:35)
    at origin.emit (/app/node_modules/.pnpm/@szmarczak+http-timer@4.0.6/node_modules/@szmarczak/http-timer/dist/source/index.js:43:20)
    at TLSSocket.socketErrorListener (node:_http_client:495:9)
    at TLSSocket.emit (node:events:514:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
    at Timeout.timeoutHandler [as _onTimeout] (/app/node_modules/.pnpm/got@11.8.6/node_modules/got/dist/source/core/utils/timed-out.js:36:25)
    at listOnTimeout (node:internal/timers:575:11)
    at process.processTimers (node:internal/timers:514:7)
Helpful Information to provide when opening issue:
Path: /club/1000
Node version: v20.10.0
Git Hash: 3c02275

@TonyRL TonyRL merged commit 804a4ab into DIYgod:master Dec 4, 2023
33 checks passed
@nczitzk nczitzk deleted the feature/huxiu branch December 4, 2023 23:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto: Route Test Complete Auto route test has finished on given PR Route: v2 v2 route related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

虎嗅的源流可以获取rss吗
2 participants