Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.22 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN">
  2. <html dir="ltr" class="ms-isBot" lang="en-US">
  3. <head>
  4. <meta name="GENERATOR" content="Microsoft SharePoint" />
  5. <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
  6. <title>
  7. ALL ELP REPORTS
  8. </title>
  9. <!-- === Favicon / Windows Tile ==================================================================== -->
  10. <link rel="shortcut icon" href=" " type="image/vnd.microsoft.icon" id="favicon" />
  11. <meta name="msapplication-TileImage" content=" " />
  12. <meta name="msapplication-TileColor" content="#0072C6" />
  13. <script type="text/javascript" src=" "></script>
  14. <link rel="stylesheet" type="text/css" href=" " />
  15. <link id="CssRegistration1" rel="stylesheet" type="text/css" href=" " />
  16. <link id="CssRegistration2" rel="stylesheet" type="text/css" href=" 0" />
  17. <script type="text/javascript">CallASP("one.js");
  18. </script>
  19. <script type="text/javascript">RegisterSod("strings.js", "u002f_layoutsu002f15u002f1033u002fstrings.js?rev=cG2ZohQxWuyz1u00252BF2exRTjAu00253Du00253D");RegisterSodDep("strings.js", "initstrings.js");
  20.  
  21. <link type="text/xml" rel="alternate" href="/_asd.xls" />
  22. <!-- Additional header placeholder =========================== -->
  23. <link rel="alternate" type="application/rss+xml" title="Documents" href="/_layouts/15/listfeed.aspx?List=573d80cd%2D44f6%2D47b4%2D942f%2Da12a5a1841cb" />
  24. <span id="analytics">
  25. <script language="JavaScript" type="text/javascript">
  26.  
  27. <noscript>
  28. <div class="noindex">
  29. You may be trying to access this site from a secured browser on the server. Please enable scripts and reload this page.
  30. </div>
  31. </noscript>
  32. <!-- ===== SP IDs / Prefetch SP images / SP Form =========================================================================== -->
  33. <div id="imgPrefetch" style="display:none">
  34. <img src="/_layouts/15/images/spcommon.png" />
  35. </div>
  36. <form method="post" action="./AllItems.aspx?RootFolder=%2fShared+Documents%2f08.Test+Report%2fMY20+Test+Reports%2fSanity%2fRaw+Data&FolderCTID=0x0120003C2FB175ACD9FE42B875BA259F53A6E3&View=%7bF8BC514C-49A5-47A2-8A6D-52DF70D61AE7%7d" id="aspnetForm">
  37. <input type="hidden" name="_wpcmWpid" id="_wpcmWpid" value="" />
  38. <input type="hidden" name="wpcmVal" id="wpcmVal" value="" />
  39. <input type="hidden" name="MSOWebPartPage_PostbackSource" id="MSOWebPartPage_PostbackSource" value="" />
  40.  
  41. </script>
  42.  
  43. <div id="ctl00_ctl47_asdasd" class="asdaBrandMenu">
  44. <a href="http://www.qwer.com/" target="_blank"> </a>
  45.  
  46. <!-- =============Suite Bar Links ======================-->
  47. <div id="DeltaSuiteLinks" class="ms-core-deltaSuiteLinks">
  48. <div id="suiteLinksBox">
  49. <div id="SuiteLinksHidden" style="display: none">
  50. </div>
  51. <div id="launcherIconContainer">
  52. </div>
  53.  
  54. <span style="display:none">
  55. <menu type="ServerMenu" id="zz1_ID_PersonalActionMenu" hideicons="true">
  56. <ie:menuitem id="zz2_ID_MyProfile" type="option" onmenuclick="" text="My Profile" menugroupid="100"></ie:menuitem>
  57. <ie:menuitem id="zz3_ID_Logout" type="option" onmenuclick="" text="Sign Out" description="Logout of this site." menugroupid="100"></ie:menuitem>
  58. </menu></span>
  59. <span id="zz4_Menu_t" class="ms-menu-althov ms-welcome-root" title="Open Menu" onmouseover="MMU_PopMenuIfShowing(this);MMU_EcbTableMouseOverOut(this, true)" hoveractive="ms-menu-althov-active ms-welcome-root ms-welcome-hover" hoverinactive="ms-menu-althov ms-welcome-root" onclick=" CoreInvoke('MMU_Open',byid('zz1_ID_PersonalActionMenu'), MMU_GetMenuFromClientId('zz4_Menu'),event,true, null, 0); return false;" foa="MMU_GetMenuFromClientId('zz4_Menu')" oncontextmenu="ClkElmt(this); return false;" style="white-space:nowrap"><a class="ms-core-menu-root" id="zz4_Menu" accesskey="/" href="javascript:;" title="Open Menu" onfocus="MMU_EcbLinkOnFocusBlur(byid('zz1_ID_PersonalActionMenu'), this, true);" onkeydown="MMU_EcbLinkOnKeyDown(byid('zz1_ID_PersonalActionMenu'), MMU_GetMenuFromClientId('zz4_Menu'), event);" onclick=" CoreInvoke('MMU_Open',byid('zz1_ID_PersonalActionMenu'), MMU_GetMenuFromClientId('zz4_Menu'),event,true, null, 0); return false;" oncontextmenu="ClkElmt(this); return false;" menutokenvalues="MENUCLIENTID=zz4_Menu,TEMPLATECLIENTID=zz1_ID_PersonalActionMenu" serverclientid="zz4_Menu">Bhavani Borra<span class="ms-accessible">Use SHIFT+ENTER to open the menu (new window).</span></a><span style="height:4px;width:7px;position:relative;display:inline-block;overflow:hidden;" class="s4-clust ms-viewselector-arrow ms-menu-stdarw ms-core-menu-arrow"><img src="/_catalogs/theme/Themed/EB5E82F/spcommon-B35BB0A9.themedpng?ctag=3" alt="Open Menu" style="position:absolute;left:-95px !important;top:-259px !important;" /></span><span style="height:4px;width:7px;position:relative;display:inline-block;overflow:hidden;" class="s4-clust ms-core-menu-arrow ms-viewselector-arrow ms-menu-hovarw"><img src="/_catalogs/theme/Themed/EB5E82F/spcommon-B35BB0A9.themedpng?ctag=3" alt="Open Menu" style="position:absolute;left:-86px !important;top:-259px !important;" /></span></span>
  60. </div>
  61. <!-- ======== Start: Site Actions menu ============= -->
  62. <div id="suiteBarButtons">
  63. <span class="ms-siteactions-root" id="siteactiontd"> <span style="display:none">
  64. <menu type="ServerMenu" id="zz5_FeatureMenuTemplate1" hideicons="true">
  65. <ie:menuitem id="zz6_MenuItem_ShareThisSite" type="option" onmenuclick="" description="See who's here and invite new people." menugroupid="100"></ie:menuitem>
  66. <ie:menuitem id="zz7_MenuItem_ViewAllSiteContents" type="option" iconsrc="" onmenuclick="STSNavigate2(event,'/_layouts/15/viewlsts.aspx');" text="Site contents" description="View all libraries and lists in this site." menugroupid="200"></ie:menuitem>
  67. </menu></span><span id="zz8_SiteActionsMenu_t" class="ms-siteactions-normal" title="Settings" onmouseover="MMU_PopMenuIfShowing(this);MMU_EcbTableMouseOverOut(this, true)" hoveractive="ms-siteactions-normal ms-siteactions-hover" hoverinactive="ms-siteactions-normal">
  68. <a class="ms-core-menu-root" id="zz8_SiteActionsMenu" accesskey="/" href="javascript:;" title="Settings" onkeydown="MMU_EcbLinkOnKeyDown(byid('zz5_FeatureMenuTemplate1'), MMU_GetMenuFromClientId('zz8_SiteActionsMenu'));" menutokenvalues="MENUCLIENTID=zz8_SiteActionsMenu,TEMPLATECLIENTID=zz5_FeatureMenuTemplate1" serverclientid="zz8_SiteActionsMenu"><span class="ms-siteactions-imgspan"><img class="ms-core-menu-buttonIcon" src="/_catalogs/theme/Themed/EB5E82F/Settings-white-94FE89A9.themedpng?ctag=3" alt="Settings" title="Settings" /></span><span class="ms-accessible">Use SHIFT+ENTER to open the menu (new window).</span></a></span> </span>
  69. </div>
  70. <!-- ================== End: Site Actions Menu ============================================ -->
  71. <!-- ================== IT Help Link ============================================ -->
  72.  
  73. <div class="ms-core-listMenu-verticalBox">
  74. </div>
  75. </div>
  76. </div>
  77. </div>
  78. <!-- ===== Main Content ========================================================================================== -->
  79.  
  80. <tr class="ms-alternating ms-itmhover" iid="47,1430,0">
  81. <td class="ms-vb-itmcbx ms-vb-firstCell"><input type="checkbox" class="s4-itm-cbx" /></td>
  82. <td class="ms-vb-icon"><img border="0" alt="ECS-dailyTask.xls" title="ECS-dailyTask.xls" src="" /></td>
  83. <td height="100%" onmouseover="OnChildItem(this)" class="ms-vb-title">
  84. <div class="ms-vb itx" onmouseover="OnItem(this)" ctxname="ctx47" id="1430" field="LinkFilename" perm="0x1b03c4312ef" eventtype="">
  85. <a onfocus="OnLink(this)" href="/MyDocuments/ECS-dailyTask.xls" onmousedown="">ECS-dailyTask</a>
  86. </div>
  87. <div class="s4-ctx" onmouseover="OnChildItem(this.parentNode); return false;">
  88. <span>&nbsp;</span>
  89. <a onfocus="OnChildItem(this.parentNode.parentNode); return false;" onclick="" href="javascript:;" title="Open Menu"></a>
  90. <span>&nbsp;</span>
  91. </div></td>
  92. <td class="ms-vb2">
  93. <nobr>
  94. 3/31/2013 11:04 AM
  95. </nobr></td>
  96.  
  97. <tr class="ms-alternating ms-itmhover" iid="47,1429,0">
  98. <td class="ms-vb-itmcbx ms-vb-firstCell"><input type="checkbox" class="s4-itm-cbx" /></td>
  99. <td class="ms-vb-icon"><img border="0" alt="ECS-MontlhyTask.xls" title="ECS-MontlhyTask.xls" src="/_layouts/15/images/icxls.png?rev=23" /></td>
  100. <td height="100%" onmouseover="OnChildItem(this)" class="ms-vb-title">
  101. <div class="ms-vb itx" onmouseover="OnItem(this)" ctxname="ctx47" id="1429" field="LinkFilename" perm="0x1b03c4312ef" eventtype="">
  102. <a onfocus="OnLink(this)" href="/MyDocs/ECS-MontlhyTask.xls" onmousedown="">ECS-MontlhyTask</a>
  103. </div>
  104. <div class="s4-ctx" onmouseover="OnChildItem(this.parentNode); return false;">
  105. <span>&nbsp;</span>
  106. <a onfocus="" onclick="" href="javascript:;" title="Open Menu"></a>
  107. <span>&nbsp;</span>
  108. </div></td>
  109. <td class="ms-vb2">
  110. <nobr>
  111. 7/24/2016 10:09 PM
  112. </nobr></td>
  113. <td class="ms-vb-user"><span class="ms-noWrap"><span class="ms-imnSpan"><a href="#" onclick="" class="ms-imnlink ms-spimn-presenceLink">
  114. <span class="ms-spimn-presenceWrapper ms-imnImg ms-spimn-imgSize-10x10">
  115. <img name="imnmark" class="" title="" showofflinepawn="1" src="" alt="No presence information" id="imn_16532,type=sip" />
  116. </span></a></span><span class="ms-noWrap ms-imnSpan">
  117. <a href="#" onclick="" class="ms-imnlink" tabindex="-1"><img name="imnmark" class="ms-hide" title="" showofflinepawn="1" src="" alt=""/></a>
  118. <a class="ms-subtleLink" onclick="" href="/_layouts/15/userdisp.aspx?ID=113">ASDF</a></span></span></td>
  119. </tr>
  120. ..
  121. ...
  122. <table width="100%" border="0" cellpadding="0" cellspacing="0" class="ms-bottompaging" xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:d="http://schemas.microsoft.com/" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:pcm="urn:PageContentManager" xmlns:ddwrt2="urn:frontpage:internal">
  123. <tbody>
  124. <tr>
  125. <td class="ms-bottompagingline1"><img src="/_images/11/images/blank.gif?rev=40" width="1" height="1" alt="" /></td>
  126. </tr>
  127. <tr>
  128. <td class="ms-bottompagingline2"><img src="/_images/11/images/blank.gif?rev=40" width="1" height="1" alt="" /></td>
  129. </tr>
  130. <tr>
  131. <td class="ms-vb" id="bottomPagingCellWPQ2" align="center">
  132. <table>
  133. <tbody>
  134. <tr>
  135. <td class="ms-paging">1 - 15</td>
  136. <td><a onclick="javascript:RefreshPageTo(event, "/sites/myAppDetail/My%20Documents/Forms/AllApplicationss.aspx?Paged=TRUE&p_SortBehavior=0&p_FileLeafRef=LT%5fSW%20TEAM%5fNatural%5fItemCode%5f20170909%5fvstatus%2epdf&p_ID=85&RootFolder=%2fmyData%2fFolder3%2fCommon%20Docs%2fdaily%20Report%2f2017&PageFirstRow=16&&View={05465DFA-110E-21FC-8AD6-8B9846567FF8B}");javascript:return false;" href="javascript:"><img src="/_layouts/15/1011/images/next.gif" border="0" alt="Next" /></a></td>
  137. </tr>
  138. </tbody>
  139. </table></td>
  140. </tr>
  141. <tr>
  142.  
  143. import org.jsoup.Jsoup;
  144. import org.jsoup.nodes.Document;
  145. import org.jsoup.nodes.Element;
  146. import org.jsoup.select.Elements;
  147. import java.io.File;
  148. import java.io.IOException;
  149. public class ReadFileNamesFromHTMLContent {
  150. public static void main(String args[]) throws IOException {
  151. File input = new File("readData.html");
  152. Document doc = Jsoup.parse(input, "UTF-8");
  153. Elements links = doc.select(".ms-paging > td > a"); //get the value stored inside <a onClick="javascript:RefreshPageTo(event, &quot...)"> near <td class="ms-paging">1 - 15</td>;
  154. System.out.println("size : "+ links.size()); //0
  155. for (Element link : links) {
  156. System.out.println(link);//empty, it should print the link
  157. }
  158. }
  159. }
  160.  
  161. size:0
  162.  
  163. "/sites/myAppDetail/My%20Documents/Forms/AllApplicationss.aspx?Paged=TRUE&p_SortBehavior=0&p_FileLeafRef=LT%5fSW%20TEAM%5fNatural%5fItemCode%5f20170909%5fvstatus%2epdf&p_ID=85&RootFolder=%2fmyData%2fFolder3%2fCommon%20Docs%2fdaily%20Report%2f2017&PageFirstRow=16&&View={05465DFA-110E-21FC-8AD6-8B9846567FF8B}&quot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement