Similar to: principles and implementation of Baidu Library download Tool
We will analyze the "Principles of the point-free downloading tool for douding documentation". The lab documentation URL here is: Success.
Download http://www.docin.com/p-239490008.html to find the content on the webpage:
<Script language = "javascript" type = "text/javascript">
Var playcontent = {"converSuccess": [30], "downloadPrice": [9.38], "autherId": [29814826], "pdtType": ["pdf"], "onlinePrice": [0], "bookMarkId": [0], "initLoadCtrl": [true], "pdtState": [0], "pageNum": [1], "autherNickName": ["yy_js92"], "interval time": ["14:27:15"], "pdtTitle": ["Side-direction parking illustration teaches you lateral parking Tips"], "pdtSize": [""], "pdtFreeDown": [false], "bookMark": [0], "errorCode": [0], "pdtDescription ": [""], "onlinePage": [0], "auditLevel": [1], "pcatid ": ["5"]};
Function returnJson (){
Return playcontent;
}
Var fo = new SWFObject ("http://pics.wanlibo.com/players/DocinViewer.swf? Rand = 20110819 "," player "," 100% "," 100% "," 9.0.16.0 ");
Fo. addVariable ("productId", 239490008 );
Fo. addVariable ("channel", 0 );
Fo. addVariable ("loadurl", "file1.yimk.com ");
Fo. addVariable ("aid", 499 );
Fo. addParam ("align", "middle ");
Fo. addParam ("wmode", "transparent ");
Fo. addParam ("quality", "high ");
Fo. addParam ("allowScriptAccess", "always ");
Fo. addParam ("allowFullScreen", "true ");
Fo. addParam ("wmode", "transparent ");
Fo. useExpressInstall ('HTTP: // pics.wanlibo.com/players/expressinstall.swf ');
Fo. write ("DocinViewer ");
</Script>
Playcontent contains the specific information of the document. If you find file1.yimk.com, construct the URL:
Bytes.
Parsing ......