开发者

How to get page source code using JRex?

开发者 https://www.devze.com 2023-01-10 05:38 出处:网络
Ho开发者_高级运维w to access page source code using JRex? //WebNavigation navigation = null; //URI uri = null;

Ho开发者_高级运维w to access page source code using JRex?


//WebNavigation navigation = null;
//URI uri = null;

navigation.loadURI(uri, WebNavigationConstants.LOAD_FLAGS_NONE, null, null, null);
Document doc = navigation.getDocument();
Element ex = doc.getDocumentElement();
System.out.println(ex.getTextContent()); //prints page source
0

精彩评论

暂无评论...
验证码 换一张
取 消