Guest User

Untitled

a guest
Mar 23rd, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.99 KB | None | 0 0
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
  5. <meta http-equiv="cache-control" content="max-age=0">
  6. <meta http-equiv="cache-control" content="no-cache">
  7. <meta http-equiv="expires" content="0">
  8. <meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT">
  9. <meta http-equiv="pragma" content="no-cache">
  10. <meta http-equiv="refresh" content="10;
  11. url=/distil_r_captcha.html?requestId=f199a38d-d572-4765-81b6-4b8da6d6b687&
  12. amp;httpReferrer=%2Fpets-all%2Fpets%2Fx132222%3Fpage%3D1">
  13. <script type="text/javascript">
  14. (function(window){
  15. try {
  16. if (typeof sessionStorage !== 'undefined'){
  17. sessionStorage.setItem('distil_referrer', document.referrer);
  18. }
  19. } catch (e){}
  20. })(window);
  21. </script>
  22. <script type="text/javascript" src="/QkrDIV1twwxccausccz.js" defer>
  23. </script>
  24. <style type="text/css">#d__fFH{position:absolute;top:-5000px;left:-
  25. 5000px}#d__fF{font-family:serif;font-
  26. size:200px;visibility:hidden}#fuycsdfqewuebryracxcqyxwawaa{display:none!important}</style>
  27. </head>
  28. <body>
  29. <div id="distilIdentificationBlock">
  30. &nbsp;
  31. </div>
  32. </body>
  33. </html>
  34.  
  35. public class Wholelist {
  36. static String url = "some website";
  37. static Document doc;
  38.  
  39. public static void main(String args[]) throws IOException {
  40. getlink(doc);
  41. }
  42.  
  43. @SuppressWarnings("deprecation")
  44. static Document getDoc(String url){
  45. try {
  46. return Jsoup.connect(url).userAgent("Mozilla/5.0 (Windows; U; WindowsNT 5.1; en-US; rv1.8.1.6) Gecko/20070725 Firefox/2.0.0.6").validateTLSCertificates(false).get();
  47. } catch (IOException e) {
  48. e.printStackTrace();
  49. return null;
  50. }
  51. }
  52. public static void getlink(Document doc1){
  53. Elements elements =doc.select("div.a1d1topcontainer").select("div.snb.entire.ad.a1d1top").select("div.snb.ad.container").select("a");
  54. for(Element element:elements){
  55. String urls = element.attr("data-href");
  56. String Links = urls;
  57. System.out.println(ab);
  58. //System.out.println(element);
  59. }
Add Comment
Please, Sign In to add comment