public static Document parseDocument ( String url ) throws IOException { return Jsoup . connect ( url ) . timeout ( Constants . PARSING_TIMEOUT ) . userAgent ( "Mozilla/5.0 (Windows; U; WindowsNT 5.1; en-US; rv1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" ) . referrer ( "http://www.google.com" ) . get ( ) ; }
PArses a URL with all the required parameters