What

Backup your neteasy blog entries to a sqlite3 database.

Only Created time,title and content are stored.

see program src

Database Scheme

CREATE TABLE entry(
    id INTEGER PRIMARY KEY AUTOINCREMENT,
    timestamp INTEGER,
    title TEXT,
    content TEXT
)

Usage:

neteasy.py <username>

The <username> is your blog name which appears in your blog domain. Just like "junjie.blog.163.com", in which "junjie" is the <username>

Demo

If everything is normal, the output will be like this:

Otherwise, the omitted entries will be prompted at the bottom:

Customize

I got uid and category information from the HTML source of <username>.blog.163.com/blog. Category info structure is below.

[{id:'-2',name:'草稿箱',count:0},
{id:'-3',name:'回收站',count:1},
{id:"fks_084067086080088071082083081095086094088075081085080069",name:"文风。",count:0},
{id:"fks_087070085080083067093084074065092095089070087080080",name:"默认分类",count:101}]

You can store more information of each blog entry.Below is the structure of entry info got in get_list. I just used the permalink to get entry detail URL and got timestamp,title and content in the detail HTML page.

content="<abstract>";
title="<title>";
permalink="<URL>";
publishTime=<timestamp>;

abstractSysGen=1;
accessCount=11;
allowComment=-100;
allowView=-100;
blogAbstract="";
blogAttachments=null;
blogCount=s56;
blogExt=null;
circleCount=0;
circleIdList=s57;
circleIds=null;
classId="fks_087070085080083067093084074065092095089070087080080";
className="";
commentCount=0;
comments=null;
contentPlainText=null;
id="fks_095069092084086070080082086095086094088075081085080069";
ip="221.233.47.78";
isBlogAbstractComplete=false;
isPublished=1;
keyName="ID";
keyWordCheckedState=0;
lastAccessCountUpdateTime=1444659802159;
matchedKeyWord=false;
modifyTime=1311086816156;
moveFrom="NONE";
permaSerial="289853662011619104628824";
photoIds=null;
photoStoreTypes=null;
publishTimeStr="22:46:28";
publisherId=0;
publisherNickname=null;
publisherUsername=null;
rank=0;
recomBlogHome=false;
ref=false;
shortPublishDateStr="2011-7-19";
synchLofter=-1;
synchMiniBlog=-1;
tag="";
trackbackCount=0;
trackbackUrl="blog/289853662011619104628824.track";
userId=28985366;
userName="kuoaixq";
userNickname="Lolita\u3002";
valid=0;
zipContent=null;