Skip to content

Conversation

@xiaomuacg
Copy link

@xiaomuacg xiaomuacg commented Sep 25, 2025

Involved Issue / 该 PR 相关 Issue

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

/xiaomuacg

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

  • New Route / 新的路由
  • Follows Script Standard / 跟随 路由规范
  • 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 / 说明

为 xiaomuacg.com 添加 RSS 路由。该网站是一个游戏、动漫资讯网站,提供游戏和动漫新闻、游戏限免和优惠信息等内容。路由基于现有的 WordPress RSS feed 进行优化处理,提供更好的阅读体验。

@github-actions github-actions bot added the route label Sep 25, 2025
@xiaomuacg xiaomuacg changed the title route: add xiaomuacg game news route feat: add xiaomuacg game news route Sep 25, 2025
@xiaomuacg xiaomuacg changed the title feat: add xiaomuacg game news route feat(route): add xiaomuacg game news route Sep 25, 2025
@github-actions
Copy link
Contributor

Successfully generated as following:

http://localhost:1200/xiaomuacg - Failed ❌
HTTPError: Response code 503 (Service Unavailable)

Error Message:<br/>Error: Both RSS and homepage parsing failed: [GET] &quot;https://xiaomuacg.com/feed/&quot;: 403 Forbidden
Route: /xiaomuacg
Full Route: /xiaomuacg
Node Version: v22.20.0
Git Hash: 7dc3b077

@xiaomuacg
Copy link
Author

It should be working well, at least on my local device. Please help look into this. Thank you ~

@xiaomuacg xiaomuacg changed the title feat(route): add xiaomuacg game news route feat(route): add 小木游戏情报 Sep 26, 2025
@github-actions
Copy link
Contributor

Successfully generated as following:

http://localhost:1200/xiaomuacg - Failed ❌
HTTPError: Response code 503 (Service Unavailable)

Error Message:<br/>Error: Both RSS and homepage parsing failed: [GET] &quot;https://xiaomuacg.com/feed/&quot;: 403 Forbidden
Route: /xiaomuacg
Full Route: /xiaomuacg
Node Version: v22.20.0
Git Hash: b44e53ea

@cscnk52
Copy link
Contributor

cscnk52 commented Sep 27, 2025


async function handler() {
const baseUrl = 'https://xiaomuacg.com';

Check failure

Code scanning / ESLint

Disallow trailing whitespace at the end of lines Error

Trailing spaces not allowed.
retry: 2,
retryDelay: 1000
});

Check failure

Code scanning / ESLint

Disallow trailing whitespace at the end of lines Error

Trailing spaces not allowed.
retry: 2,
retryDelay: 1000
});

Check failure

Code scanning / ESLint

Disallow trailing whitespace at the end of lines Error

Trailing spaces not allowed.

// 尝试多种选择器来找到文章
let articles = $('article').slice(0, 10);

Check failure

Code scanning / ESLint

Disallow trailing whitespace at the end of lines Error

Trailing spaces not allowed.
if (articles.length === 0) {
articles = $('.post, .entry, .content-item, .item, .news-item').slice(0, 10);
}

Check failure

Code scanning / ESLint

Disallow trailing whitespace at the end of lines Error

Trailing spaces not allowed.
if (dateText) {
try {
pubDate = parseDate(dateText);
} catch (e) {

Check failure

Code scanning / ESLint

Prefer omitting the `catch` binding parameter. Error

Remove unused catch binding e.
if (dateText) {
try {
pubDate = parseDate(dateText);
} catch (e) {

Check failure

Code scanning / ESLint

Enforce a specific parameter name in catch clauses. Error

The catch parameter e should be named error_.
if (dateText) {
try {
pubDate = parseDate(dateText);
} catch (e) {

Check failure

Code scanning / ESLint

Disallow unused variables Error

'e' is defined but never used.
return {
title,
link,
description: description.substring(0, 200) + (description.length > 200 ? '...' : ''),

Check warning

Code scanning / ESLint

Prefer `String#slice()` over `String#substr()` and `String#substring()`. Warning

Prefer String#slice() over String#substring().
};
} catch (fallbackError) {
logger.error(`Fallback also failed: ${fallbackError}`);

Check failure

Code scanning / ESLint

Disallow trailing whitespace at the end of lines Error

Trailing spaces not allowed.
@github-actions
Copy link
Contributor

Successfully generated as following:

http://localhost:1200/xiaomuacg - Success ✔️
<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
  <channel>
    <title>小木游戏情报</title>
    <link>https://xiaomuacg.com</link>
    <atom:link href="http://localhost:1200/xiaomuacg" rel="self" type="application/rss+xml"></atom:link>
    <description>暂时无法获取最新文章,请稍后再试。 - Powered by RSSHub</description>
    <generator>RSSHub</generator>
    <webMaster>[email protected] (RSSHub)</webMaster>
    <language>en</language>
    <lastBuildDate>Sat, 27 Sep 2025 10:22:35 GMT</lastBuildDate>
    <ttl>5</ttl>
    <item>
      <title>网站暂时无法访问</title>
      <description>访问出现问题:[GET] &quot;https://xiaomuacg.com/feed/&quot;: 403 Forbidden</description>
      <link>https://xiaomuacg.com/</link>
      <guid isPermaLink="false">https://xiaomuacg.com/</guid>
      <pubDate>Sat, 27 Sep 2025 10:22:35 GMT</pubDate>
    </item>
  </channel>
</rss>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants