Skip to content

fix(bilibili-qrlogin): 修复哔哩哔哩扫码登陆 - #583

Open
molanp wants to merge 2 commits into
fllesser:masterfrom
molanp:patch-1
Open

fix(bilibili-qrlogin): 修复哔哩哔哩扫码登陆#583
molanp wants to merge 2 commits into
fllesser:masterfrom
molanp:patch-1

Conversation

@molanp

@molanp molanp commented Aug 13, 2026

Copy link
Copy Markdown
Contributor
  • 引入 QrCodeLoginChannel 和 get_client 用于二维码登录
  • 重构 BilibiliParser 类中的方法以支持二维码登录流程
  • 添加 check_state 方法处理二维码状态检查逻辑

- 引入 QrCodeLoginChannel 和 get_client 用于二维码登录
- 重构 BilibiliParser 类中的方法以支持二维码登录流程
- 添加 check_state 方法处理二维码状态检查逻辑
@codecov

codecov Bot commented Aug 13, 2026

Copy link
Copy Markdown

❌ 5 Tests Failed:

Tests completed Failed Passed Skipped
45 5 40 4
View the top 3 failed test(s) by shortest run time
tests.parsers.test_weibo::test_repost
Stack Traces | 1.13s run time
tests/parsers/test_weibo.py:60: in test_repost
    await asyncio.gather(*[parse_repost(url) for url in urls])
tests/parsers/test_weibo.py:46: in parse_repost
    parse_result = await parser.parse(keyword, searched)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.../nonebot_plugin_parser/parsers/base.py:89: in parse
    return await self._handlers[keyword](self, searched)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.../parsers/weibo/__init__.py:50: in _parse_m_weibo_cn
    return await self.parse_weibo_id(wid)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.../parsers/weibo/__init__.py:193: in parse_weibo_id
    weibo_data = common.decoder.decode(response.content).data
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E   msgspec.ValidationError: Object missing required field `data`
tests.parsers.test_douyin::test_note
Stack Traces | 1.44s run time
tests/parsers/test_douyin.py:96: in test_note
    await test_parse(url)
tests/parsers/test_douyin.py:84: in test_parse
    result = await parser.parse(keyword, searched)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.../nonebot_plugin_parser/parsers/base.py:89: in parse
    return await self._handlers[keyword](self, searched)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.../parsers/douyin/__init__.py:45: in _parse_douyin
    raise ParseException("分享已删除或资源直链提取失败, 请稍后再试")
E   nonebot_plugin_parser.exception.ParseException: 分享已删除或资源直链提取失败, 请稍后再试
tests.parsers.test_nga::test_nga_parse
Stack Traces | 2.32s run time
tests/parsers/test_nga.py:21: in test_nga_parse
    result = await parser.parse(keyword, searched)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.../nonebot_plugin_parser/parsers/base.py:89: in parse
    return await self._handlers[keyword](self, searched)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.../nonebot_plugin_parser/parsers/nga.py:73: in _parse
    raise ParseException(f"无法获取页面, HTTP {resp.status_code}")
E   nonebot_plugin_parser.exception.ParseException: 无法获取页面, HTTP 403
tests.parsers.test_douyin::test_common_video
Stack Traces | 4.3s run time
tests/parsers/test_douyin.py:39: in test_common_video
    await test_parse(url)
tests/parsers/test_douyin.py:23: in test_parse
    result = await parser.parse(keyword, searched)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.../nonebot_plugin_parser/parsers/base.py:89: in parse
    return await self._handlers[keyword](self, searched)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.../parsers/douyin/__init__.py:25: in _parse_short_link
    return await self.parse_with_redirect(url)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.../nonebot_plugin_parser/parsers/base.py:104: in parse_with_redirect
    return await self.parse(keyword, searched)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.../nonebot_plugin_parser/parsers/base.py:89: in parse
    return await self._handlers[keyword](self, searched)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.../parsers/douyin/__init__.py:45: in _parse_douyin
    raise ParseException("分享已删除或资源直链提取失败, 请稍后再试")
E   nonebot_plugin_parser.exception.ParseException: 分享已删除或资源直链提取失败, 请稍后再试
tests.parsers.test_douyin::test_slides
Stack Traces | 15.9s run time
tests/parsers/test_douyin.py:131: in test_slides
    result = await parser.parse(keyword, searched)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.../nonebot_plugin_parser/parsers/base.py:89: in parse
    return await self._handlers[keyword](self, searched)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.../parsers/douyin/__init__.py:45: in _parse_douyin
    raise ParseException("分享已删除或资源直链提取失败, 请稍后再试")
E   nonebot_plugin_parser.exception.ParseException: 分享已删除或资源直链提取失败, 请稍后再试

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant