SBB(Sina Blog Book) is a script to download all artcles from a specific Sina Blog blogger.
Based on these downloaded HTML files, you may generate an ebook by importing into Calibre. Or, you can simply save them anywhere as archives.
Tested with Python 2.7.8
SBB.py (Sina Blog URL) (asc|desc)
The sort order argument is optional. By default, articles will be sorted chronically (asc).
###Example:
- SBB.py http://blog.sina.com.cn/gongmin desc
- SBB.py http://blog.sina.com.cn/u/1239657051
- Add a datestamp for Index.html
- 'SELECT * FROM AllBlogPosts ORDER BY DatePosted DESC / ASC'
- Download the embed pictures
- Intergrate Calibre lib to generate eBook in one place
Licensed under the Apache License, Version 2.0
##Change log
###Feb 15, 2015
- [ADDED] timestamp for index and articles.
- [ADDED] sort option. Ascending by default.
#中文
SBB(Sina Blog Book) 是一个用于下载指定新浪博客作者全部文章的脚本。
基于这些下载来的 HTML 文件,您可以借助 Calibre 来生成电子书,或者当作存档。
请在 Python 2.7.8 下使用。
SBB.py (新浪博客地址) (desc|asc)
排序开关是可选的,默认为按发表时间顺序排列(即 asc)。
例子:
- SBB.py http://blog.sina.com.cn/gongmin desc
- SBB.py http://blog.sina.com.cn/u/1239657051
- 首页增加时间戳
- 'SELECT * FROM AllBlogPosts ORDER BY DatePosted DESC / ASC'
- 增加下载图片选项
- 整合 Calibre 库,一站式打包成 .mobi 或 .ePub
Licensed under the Apache License, Version 2.0
##升级日志
###2015年2月15日
- [增加] 索引页面和文章页面增加时间戳。
- [增加] 文章排序选项,默认按发表时间顺序排列。