RSSHub icon indicating copy to clipboard operation
RSSHub copied to clipboard

feat(route): yamibo

Open KarasuShin opened this issue 9 months ago • 6 comments

Involved Issue / 该 PR 相关 Issue

Close #

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

/yamibo/bbs/forum/5/404
/yamibo/bbs/thread/541914

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

  • [x] New Route / 新的路由
  • [x] Anti-bot or rate limit / 反爬/频率限制
    • [x] If yes, do your code reflect this sign? / 如果有, 是否有对应的措施?
  • [x] Date and time / 日期和时间
    • [x] Parsed / 可以解析
    • [x] Correct time zone / 时区正确
  • [ ] New package added / 添加了新的包
  • [ ] Puppeteer

Note / 说明

KarasuShin avatar May 09 '24 19:05 KarasuShin

Successfully generated as following:

http://localhost:1200/yamibo/bbs/forum/5/404 - Failed ❌
HTTPError: Response code 503 (Service Unavailable)

Error Message:<br/><code class="mt-2 block max-h-28 overflow-auto bg-zinc-100 align-bottom w-fit details">FetchError: [GET] &quot;https://bbs.yamibo.com/forum.php?mod=forumdisplay&amp;fid=5&amp;orderby=dateline&amp;filter=typeid&amp;typeid=404&quot;: 403 Forbidden</code>
Route: <code class="ml-2 bg-zinc-100">/yamibo/bbs/forum/:fid/:type?</code>
Full Route: <code class="ml-2 bg-zinc-100">/yamibo/bbs/forum/5/404</code>
Node Version: <code class="ml-2 bg-zinc-100">v21.7.3</code>
Git Hash: <code class="ml-2 bg-zinc-100">a348539d</code>
http://localhost:1200/yamibo/bbs/thread/541914 - Failed ❌
HTTPError: Response code 503 (Service Unavailable)

Error Message:<br/><code class="mt-2 block max-h-28 overflow-auto bg-zinc-100 align-bottom w-fit details">FetchError: [GET] &quot;https://bbs.yamibo.com/forum.php?mod=viewthread&amp;tid=541914&amp;ordertype=1&quot;: 403 Forbidden</code>
Route: <code class="ml-2 bg-zinc-100">/yamibo/bbs/thread/:tid</code>
Full Route: <code class="ml-2 bg-zinc-100">/yamibo/bbs/thread/541914</code>
Node Version: <code class="ml-2 bg-zinc-100">v21.7.3</code>
Git Hash: <code class="ml-2 bg-zinc-100">a348539d</code>

github-actions[bot] avatar May 09 '24 19:05 github-actions[bot]

Successfully generated as following:

http://localhost:1200/yamibo/bbs/forum/5/404 - Failed ❌
HTTPError: Response code 503 (Service Unavailable)

Error Message:<br/><code class="mt-2 block max-h-28 overflow-auto bg-zinc-100 align-bottom w-fit details">FetchError: [GET] &quot;https://bbs.yamibo.com/forum.php?mod=forumdisplay&amp;fid=5&amp;orderby=dateline&amp;filter=typeid&amp;typeid=404&quot;: 403 Forbidden</code>
Route: <code class="ml-2 bg-zinc-100">/yamibo/bbs/forum/:fid/:type?</code>
Full Route: <code class="ml-2 bg-zinc-100">/yamibo/bbs/forum/5/404</code>
Node Version: <code class="ml-2 bg-zinc-100">v21.7.3</code>
Git Hash: <code class="ml-2 bg-zinc-100">2071954a</code>
http://localhost:1200/yamibo/bbs/thread/541914 - Failed ❌
HTTPError: Response code 503 (Service Unavailable)

Error Message:<br/><code class="mt-2 block max-h-28 overflow-auto bg-zinc-100 align-bottom w-fit details">FetchError: [GET] &quot;https://bbs.yamibo.com/forum.php?mod=viewthread&amp;tid=541914&amp;ordertype=1&quot;: 403 Forbidden</code>
Route: <code class="ml-2 bg-zinc-100">/yamibo/bbs/thread/:tid</code>
Full Route: <code class="ml-2 bg-zinc-100">/yamibo/bbs/thread/541914</code>
Node Version: <code class="ml-2 bg-zinc-100">v21.7.3</code>
Git Hash: <code class="ml-2 bg-zinc-100">2071954a</code>

github-actions[bot] avatar May 09 '24 20:05 github-actions[bot]

It seems that requests from regions other than Mainland China, Hong Kong, and Taiwan will trigger Cloudflare challenge 😭

KarasuShin avatar May 09 '24 20:05 KarasuShin

Successfully generated as following:

http://localhost:1200/yamibo/bbs/forum/5/404 - Failed ❌
HTTPError: Response code 503 (Service Unavailable)

Error Message:<br/><code class="mt-2 block max-h-28 overflow-auto bg-zinc-100 align-bottom w-fit details">FetchError: [GET] &quot;https://bbs.yamibo.com/forum.php?mod=forumdisplay&amp;fid=5&amp;orderby=dateline&amp;filter=typeid&amp;typeid=404&quot;: 403 Forbidden</code>
Route: <code class="ml-2 bg-zinc-100">/yamibo/bbs/forum/:fid/:type?</code>
Full Route: <code class="ml-2 bg-zinc-100">/yamibo/bbs/forum/5/404</code>
Node Version: <code class="ml-2 bg-zinc-100">v21.7.3</code>
Git Hash: <code class="ml-2 bg-zinc-100">4b0a602f</code>
http://localhost:1200/yamibo/bbs/thread/541914 - Failed ❌
HTTPError: Response code 503 (Service Unavailable)

Error Message:<br/><code class="mt-2 block max-h-28 overflow-auto bg-zinc-100 align-bottom w-fit details">FetchError: [GET] &quot;https://bbs.yamibo.com/forum.php?mod=viewthread&amp;tid=541914&amp;ordertype=1&quot;: 403 Forbidden</code>
Route: <code class="ml-2 bg-zinc-100">/yamibo/bbs/thread/:tid</code>
Full Route: <code class="ml-2 bg-zinc-100">/yamibo/bbs/thread/541914</code>
Node Version: <code class="ml-2 bg-zinc-100">v21.7.3</code>
Git Hash: <code class="ml-2 bg-zinc-100">4b0a602f</code>

github-actions[bot] avatar May 11 '24 11:05 github-actions[bot]

I tried to use Puppeteer with stealth to deal with the Cloudflare challenge, but Puppeteer keeps staying on the Cloudflare page, I have no idea how to resolve it.

KarasuShin avatar May 11 '24 14:05 KarasuShin

I encountered the same issue in https://github.com/berstend/puppeteer-extra/issues/832 when using Puppeteer. It seems that currently there is no way to use Puppeteer to bypass Cloudflare detection.

KarasuShin avatar May 12 '24 14:05 KarasuShin