public static Project getProjectFromURL(String url) {
		Project project = new Project();
		project.setUrl(url);
		System.out.println("------" + url);
		Document doc;
		try {
			doc = Jsoup.connect(url).get();
			Elements backersElements = doc.select("div#backers_count");
			String totalBackers = backersElements.get(0).attr(
					"data-backers-count");
			Integer totalBackersCount = new Integer(-1);
			try {
				totalBackersCount = Integer.parseInt(totalBackers);
			
			} catch (Exception e) {
				e.printStackTrace();
			}
			// <span data-duration="29.958333333333332"
			// data-end_time="Wed, 03 Apr 2013 10:35:41 -0000"
			// data-hours-remaining="546.9010091555781"
			// id="project_duration_data"></span>
			Elements durations = doc.select("span[data-duration]");
			if (durations != null & durations.size() > 0) {
				Element duration = durations.get(0);
				project.setDuration(duration.attr("data-duration"));
				project.setDaysToGo(duration.attr("data-hours-remaining"));
			}
			Elements elements = doc.select("div[data-goal]");

			if (elements != null && elements.size() > 0) {
				Element element = elements.get(0);
				try {
					project.setGoal(Double.valueOf(element.attr("data-goal")));
				} catch (Exception e) {
					e.printStackTrace();
				}
				Elements dataEs = element.select("data[data-currency]");
				project.setBackers(totalBackersCount);
				project.setCurrency(dataEs.get(0).attr("data-currency"));
				project.setPledgedAmount(element.attr("data-pledged"));
				project.setPercentageRaised(element.attr("data-percent-raised"));
				project.setProId(element.attr("id"));

				Element innerEle = element.child(0);
				if (innerEle != null) {
					Elements projectRewards = doc
							.select("div.NS-projects-reward");

					Elements pledges = projectRewards.select("h5");
					Elements backers = projectRewards
							.select("span.num-backers");
					Set<Reward> rewardSet = new HashSet<Reward>();
					for (Element backer : backers) {
						Reward rwd = new Reward(pledges.get(0).text(), backers
								.get(0).text());

						rewardSet.add(rwd);

					}
					project.setRewards(rewardSet);
				}

				Elements locations = doc.select("li.location");
				project.setLocation(locations.get(0).text());
			//	System.out.println("location : " + project.getLocation());
				/*
				 * Elements posted = doc.select("li.posted");
				project.setPostedDate(posted.get(0).text());

				Elements ended = doc.select("li.ends");
				 */
				Elements posted = doc.select("p.tiny_type");
				System.out.println("date issue" + posted.text());
			//	project.setPostedDate(posted.text());

			//	Elements ended = doc.select("li.ends");
			//	project.setEndedDate(ended.get(0).text());
				Elements category = doc.select("li.category");

				project.setCategory(category.text());

			}

		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return project;
	}