SBB icon indicating copy to clipboard operation
SBB copied to clipboard

在175行报错

Open surestone opened this issue 4 years ago • 2 comments

您好。我刚试用您的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 avatar Apr 06 '20 11:04 surestone

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

It runs well now. Thank you!

surestone avatar Apr 06 '20 12:04 surestone

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

It runs well now. Thank you!

确实成功了,感谢!!!

lihangjia avatar Nov 07 '20 08:11 lihangjia