public QA getQA(File input) throws IOException{
		Document doc = null;
		
		doc = Jsoup.parse(input, "UTF-8");
		
		Element article = doc.getElementById("qb-content");
		
		if(null == article){
			article = doc.getElementsByAttributeValueContaining("class", "qb-content").first();
			if(null == article )
				return null;
		}
		
		QA qa = new QA();
		//下载时间
		Element downloadtime = doc.getElementsByAttributeValue("class", "downloadtime").first();
		
		qa.setDownDate(downloadtime.text());
		
		Element askDiv = article.getElementsByAttributeValue("id", "wgt-ask").first();
		//问题标题
		qa.setQuestion(getAskTitle(askDiv));
		//问题提问时间
		qa.setQuestionDate(getQuestionDate(askDiv));
		//提问者id
		qa.setQuestionId(getQuestionID(askDiv));
		//问题的分类
		qa.setCategory(getCategory(askDiv));
		//问题的详细描述
		qa.setDescription(getQuestionContent(askDiv));
		
		//////////////////////获得回答的信息
		Element answerDiv = article.getElementsByAttributeValueContaining("class", "bd answer")
				.first();
		//还没有回答
		if(null == answerDiv){
			return qa;
		}
		//回答的时间
		qa.setAnswerDate(getAnswerDate(answerDiv));
		//回答的内容
		qa.setAnswer(getAnswerContent(answerDiv));
		
		////////////// 获取回答者信息的javascript标签
		/**
		 * 标签内容大致如下：
		 * 将等号后面的提取出来，然后一Json的形式解析
		 * F.context('answers')['1387195381'] = {uid:"620215951",
		 * imId:"8fbed0a1b6c7d7d3bdabbdabf724",isBest:"1",id:"1387195381",userName:"小肚子将将",
		 * userNameEnc:"%D0%A1%B6%C7%D7%D3%BD%AB%BD%AB",user:{sex:"1",iconType:"6",
		 * gradeIndex:"4",grAnswerNum:"45",isAuth:"0",authTitle:"",
		 * isUserAdmin:"0",userAdminLevel:"",userAdminTitle:"",
		 * isFamous:"0",isMaster:"0",goodRate:"88"},isAnonymous:"0",
		 * isCurrentUser:"0",mapUrl:"",refer:"",replyAskNum:"",
		 * threadId:"5548781525",hasComment:"1",qid:"550375818",raid:"",recommendCanceled:"0"};

		 */
		Elements javascripts = article.getElementsByTag("script");
		String info = null;
		for(Element e : javascripts){
			if(e.data().contains("F.context('answers')")){
				info = e.data().substring(e.data().indexOf("=")+1).trim();
				//因为有些标签中含有这样的内容，而JSONObject视为不合法的
				//<a href=\x22http:\/\/baike.baidu.com\/view\/2085.htm\x22 target=\x22_blank\x22>
				//	http:\/\/baike.baidu.com\/view\/2085.htm<\/a>
				// \x22是 无法解析的
				info = info.replaceAll("\\\\x22", "'");
				break;
			}
		}
		if(null == info){
			Log.info("Can't find the script bookmark");
		}
		JSONObject jsonObj = null;
		try{
			Log.info(info.toString());
			jsonObj = new JSONObject(info);
		}catch(JSONException e){
			Log.info(e.getMessage());
		}
		
		System.out.println(jsonObj.toString());
		//是否是被提问者采纳的标记
		qa.setIsBest(getIsBest(jsonObj));
		
		//回答者的基本信息
		BaiduUser user = new BaiduUser();
		//用户名字
		String name = getAnswerUsernName(jsonObj);
		user.setUsername(name);
		if(name.equals("热心网友")){
			//用户等级
			user.setGradeIndex(0);
			 //用户的采纳数
			user.setGrAnswerNum(0);
			//用户的采纳率
			user.setGoodRate(0);
			//用户的擅长领域
			user.setCarefield("暂未定制");
		}else{
			JSONObject userInfo =  jsonObj.getJSONObject("user");
			//用户等级
			user.setGradeIndex(getGradeIndex(userInfo));
			 //用户的采纳数
			user.setGrAnswerNum(getGrAnswerNum(userInfo));
			//用户的采纳率
			user.setGoodRate(getUserGoodRate(userInfo));
			//用户的擅长领域
			user.setCarefield(getUserCarefield(userInfo));
		}
		
//		//用户名字
//		user.setUsername(getAnswerUserName(answerDiv));
//		//用户等级
//		user.setGradeIndex(getUserLevel(answerDiv));
//		//用户采纳率
//		user.setGoodRate(getUserGoodRate(answerDiv));
//		//用户的擅长领域
//		user.setCarefield(getUserCarefield(answerDiv));
		
		qa.setBaiduUser(user);
		
		return qa;
	}