public static Parser getParser(String url,String encoding) throws ParserException, IOException{
        URL ur=new URL(url);
        HttpURLConnection urlConnection=(HttpURLConnection) ur.openConnection();
        Parser parser=new Parser(urlConnection);
        parser.setEncoding(encoding);
        return parser;
    }