SBB
SBB copied to clipboard
A Python script to download all articles from any Sina Blog blogger.
在175行报错
您好。我刚试用您的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'
谢谢!
作者大神~~
After installing python, I tried to run the script. It returned by following info: --------------------------------------- File "C:\Users\CarolWu\Private\SBB.py", line 7 ^ SyntaxError: invalid syntax -------------------------------------- What should I do to fix...
在Python 3.5.2下运行报错: D:\SBB-master>python SBB.py http://blog.sina.com.cn/1ness File "SBB.py", line 26 print strUsage ^ SyntaxError: Missing parentheses in call to 'print'
抓取图片到本地的功能不知道实现了没?
While dumping the articles, the script sometimes terminated while executing below codes (Line 101): objResponse = urllib2.urlopen(strTargetBlogPostURL) strPageCode = objResponse.read() objResponse.close() This is very boring since there's no persistent of...