Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html>
- <head>
- <meta NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
- <meta http-equiv="cache-control" content="max-age=0">
- <meta http-equiv="cache-control" content="no-cache">
- <meta http-equiv="expires" content="0">
- <meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT">
- <meta http-equiv="pragma" content="no-cache">
- <meta http-equiv="refresh" content="10;
- url=/distil_r_captcha.html?requestId=f199a38d-d572-4765-81b6-4b8da6d6b687&
- amp;httpReferrer=%2Fpets-all%2Fpets%2Fx132222%3Fpage%3D1">
- <script type="text/javascript">
- (function(window){
- try {
- if (typeof sessionStorage !== 'undefined'){
- sessionStorage.setItem('distil_referrer', document.referrer);
- }
- } catch (e){}
- })(window);
- </script>
- <script type="text/javascript" src="/QkrDIV1twwxccausccz.js" defer>
- </script>
- <style type="text/css">#d__fFH{position:absolute;top:-5000px;left:-
- 5000px}#d__fF{font-family:serif;font-
- size:200px;visibility:hidden}#fuycsdfqewuebryracxcqyxwawaa{display:none!important}</style>
- </head>
- <body>
- <div id="distilIdentificationBlock">
-
- </div>
- </body>
- </html>
- public class Wholelist {
- static String url = "some website";
- static Document doc;
- public static void main(String args[]) throws IOException {
- getlink(doc);
- }
- @SuppressWarnings("deprecation")
- static Document getDoc(String url){
- try {
- 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();
- } catch (IOException e) {
- e.printStackTrace();
- return null;
- }
- }
- public static void getlink(Document doc1){
- Elements elements =doc.select("div.a1d1topcontainer").select("div.snb.entire.ad.a1d1top").select("div.snb.ad.container").select("a");
- for(Element element:elements){
- String urls = element.attr("data-href");
- String Links = urls;
- System.out.println(ab);
- //System.out.println(element);
- }
Add Comment
Please, Sign In to add comment