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

在175行报错 #12

Open
surestone opened this issue Apr 6, 2020 · 2 comments
Open

在175行报错 #12

surestone opened this issue Apr 6, 2020 · 2 comments

Comments

@surestone
Copy link

您好。我刚试用您的SBB,在win10, 64位电脑,Python 2.7.8下,但出现报错。请求您的帮助。多谢!
报错信息如下:

E:\SOFTWARE\SBB-master>SBB.py http://blog.sina.com.cn/surebb
1415368884

Traceback (most recent call last):
File "E:\SOFTWARE\SBB-master\SBB.py", line 175, in
objFileArticle = open(strLocalFilename, "w")
IOError: [Errno 22] invalid mode ('w') or filename: 'Post_1_545cd0b40100038z_\xe5\x86\x99\xe7\x82\xb9\xe5\x84\xbf\xe4\xbb\x80\xe4\xb9\x88\xe5\x91\xa2\xef\xbc\x9f2006.4.16.html'

@surestone
Copy link
Author

My friend Hongjun Jiang edit it as:
objFileArticle = open(strLocalFilename.decode('utf-8'), "w")

It runs well now.
Thank you!

@lihangjia
Copy link

My friend Hongjun Jiang edit it as:
objFileArticle = open(strLocalFilename.decode('utf-8'), "w")

It runs well now.
Thank you!

确实成功了,感谢!!!

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

2 participants