修复B站动态获取失败

bili-dyn-item__tag的父项的父项才是完整的一条置顶动态
This commit is contained in:
jk6589jk 2022-05-23 12:59:53 +08:00 committed by GitHub
parent c79e3fdcf0
commit b3fdb1ff58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -330,7 +330,7 @@ async def get_user_dynamic(
"""
xs = document.getElementsByClassName('bili-dyn-item__tag');
for (x of xs) {
x.parentNode.remove();
x.parentNode.parentNode.remove();
}
"""
)