Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修改后的版本仍在存在原来的问题”attributeError: 'NoneType' object has no attribute 'split' “ 的解决方法 #338

Open
Lan-ce-lot opened this issue Mar 11, 2023 · 5 comments

Comments

@Lan-ce-lot
Copy link
Contributor

Lan-ce-lot commented Mar 11, 2023

#282 关于这个pr之后,有同学仍然存在”attributeError: 'NoneType' object has no attribute 'split' “
我猜测是网页版微博不同版本对应的cookie不同导致
旧版:

image

新版:

image

目前没有二者兼容的解决方法,只能你切一下网页版微博版本到新版本,然后获取新版本的cookie。切换方法如下:
https://page.sm.cn/blm/midpage-317/index?h=www.jingyanlib.com&id=12_8ec5d8728d9c00a4a53f936b85721a79

希望对你们有帮助。😀

@Lan-ce-lot Lan-ce-lot changed the title 修改后的版本仍在存在原来的问题”attributeError: 'NoneType' object has no attribute 'split' “ 修改后的版本仍在存在原来的问题”attributeError: 'NoneType' object has no attribute 'split' “ 的解决方法 Mar 11, 2023
@dataabc dataabc pinned this issue Mar 12, 2023
@dataabc
Copy link
Owner

dataabc commented Mar 12, 2023

感谢建议,非常有帮助

@Dey458
Copy link

Dey458 commented Mar 16, 2023

我获取了新版本微博的cookie,还是会报attributeError: 'NoneType' object has no attribute 'split' 的错。

@HowardZhang002
Copy link

新版本有同样问题

@memset-c
Copy link

参见:73698fd

将p[@class="from"]改为div[@class="from"]

有3个地方

@Lan-ce-lot
Copy link
Contributor Author

#254 (comment)

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

No branches or pull requests

5 participants