@killa
2015-07-30T09:16:39.000000Z
字数 1619
阅读 691
APEX
QA
QAPair
http://www.answers.com/T
http://www.answers.com/Q/FAQ/‘类型ID’
body section.cf section.cf artical#center div.faq_questions div.hgroup div.pagination a.last_page
可获得总页数http://www.answers.com/Q/FAQ/‘类型ID’-‘页号’
body section.cf section.cf artical#center div.faq_questions div.content div.questions div.question_slot div.question a
可获得问题页面URL和问题内容body section.cf section.cf artical#center div.faq_questions div.content div.questions div.question_slot span.popularity
可获得问题热度body section.cf section.cf artical.center_top div.utility_wrapper_card div.question_card_answer artical section div div div.user_info div.user_meta_info div.username a
可获得回答者姓名body section.cf section.cf artical.center_top div.utility_wrapper_card div.question_card_answer artical section div div div.user_info div.user_meta_info div.confidence span
可获得回答者置信度body section.cf section.cf artical.center_top div.utility_wrapper_card div.question_card_answer artical section div div div.answer_text
可获得答案内容body section.cf section.cf artical.center_top div.feedcards_wikilite
可获得相关问题的一些信息,包括题目、分类、其对应问题页面的URL、其答案的支持人数等。今天中午跟他请教了一下,觉得还是挺难上手的。他们爬豆瓣都是一边爬一边解析,只拿最想要的数据。