public static String getpage(String url) throws IOException {
         URL conn = new URL(url);
         URLConnection c = conn.openConnection();
         BufferedReader in = new BufferedReader(new InputStreamReader(c.getInputStream(), "UTF-8"));
         String inputLine;
         StringBuilder a = new StringBuilder();
         while ((inputLine = in.readLine()) != null)
             a.append(inputLine);
         in.close();
         return a.toString();
     }