mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-09-29 00:32:06 +08:00
修复B站动态获取失败
bili-dyn-item__tag的父项的父项才是完整的一条置顶动态
This commit is contained in:
@@ -330,7 +330,7 @@ async def get_user_dynamic(
|
|||||||
"""
|
"""
|
||||||
xs = document.getElementsByClassName('bili-dyn-item__tag');
|
xs = document.getElementsByClassName('bili-dyn-item__tag');
|
||||||
for (x of xs) {
|
for (x of xs) {
|
||||||
x.parentNode.remove();
|
x.parentNode.parentNode.remove();
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user