public static boolean isProperYoutubeChannel(String channelName) {
        try {
            URL url = new URL("http://gdata.youtube.com/feeds/base/users/" + channelName + "/uploads");
            BufferedReader in = new BufferedReader(
                    new InputStreamReader(url.openStream()));

            String inputLine = in.readLine();
            if(inputLine.contains("Invalid value"))
                return false;
            in.close();
        } catch (MalformedURLException e) {
            throw new RuntimeException(e);
        } catch (IOException e) {
            if(e.getMessage().contains("400 for URL"))
                return false;
        }
        return true;
    }