public static JSONObject getJSONObject(String url) {
		try {
			String str = "";
			Scanner x = new Scanner(new URL(url).openStream());
			while (x.hasNextLine()) {
				str += x.nextLine() + "\n";
			}
			return new JSONObject(str);
		} catch (JSONException e) {
			e.printStackTrace();
		} catch (MalformedURLException e) {
			e.printStackTrace();
		} catch (IOException e) {
			if(e.getMessage().contains("429")) {
				System.out.println("Request limit of 10 per 10s exceeded");
				System.exit(1);
			} else {
				e.printStackTrace();
			}
		}
		return null;
	}