public static String keyBasedData(String addy, String[] keys) {
		for (int i = 0; i < 10; i++) {// try 10 times to get html or else return
			if (i > 0)
				System.out.println("\nConnection Failure. Trying again: " + i);
			String httpdata = getHtml(addy);
			String yhdata = "";
			String str = httpdata;
			if (str.contains("was not found"))
				return "#_#_#";
			if (str.contains("Recommendation Trends")) {
				str = (str.substring(str.indexOf("Recommendation Trends")));
				str = str.replaceAll("d><t", "d> <t");
			}
			for (String key : keys) {
				if (str.contains(">" + key)) {
					String strx = str.substring(str.indexOf(">" + key) + 1);
					if (!strx.contains("</tr>"))
						return "#_#_#";
					strx = strx.substring(0, strx.indexOf("</tr>"));
					if (key.equals("Sector"))
						strx = strx.replaceAll(" ", "|");
					strx = removeHtml(strx, true).replaceAll("@", " ");// just
																		// in
																		// case
					if (strx.length() == 0)
						strx = "#";// placeholder if data does not exist
					yhdata += strx + "_";
				} else {
					yhdata += "#_";

				}
			}
			// return spacify(yhdata.replaceAll("--", "#"));
			return (yhdata.replaceAll("--", "#").replaceAll("_", " ").trim()
					.replaceAll(" ", "_"));
		}
		return "#_#";
	}