ChilkatMht是一个网页下载工具,默认是30天的试用期
CkMht mht = new CkMht();
mht.UnlockComponent("anything for 30-day trial");
ChilkatMht key:MHT_TALAUNGNpU8G
破译方法:
CkMht mht = new CkMht();
mht.UnlockComponent("MHT_TALAUNGNpU8G");
完整事例代码:
import com.chilkatsoft.CkMht;
public class WebPageToMht { static { try { System.loadLibrary("chilkat"); } catch (UnsatisfiedLinkError e) { System.err.println("Native code library failed to load.\n" + e); System.exit(1); } }
public static void main(String argv[]) { // Create a MHT object...
CkMht mht = new CkMht(); mht.UnlockComponent("MHT_TALAUNGNpU8G"); boolean success = mht.GetAndSaveMHT("http://blog.csdn.net/jaminwm/archive/2007/12/14/1937427.aspx","F:/Apache/Tomcat 6.0/webapps/output/1937427.mht"); if (!success) { System.err.println("error.."); mht.SaveLastError("lastError.txt"); } } }
|
阅读(1248) | 评论(0) | 转发(0) |