1-13 知乎某话题下的所有等待回答问题 - 图2

抓取的结果信息包含:

  • 问答标题
  • 问答详情链接
  • 评论数
  • 回答数

    结果示例图:

    1-13 知乎某话题下的所有等待回答问题 - 图3

    模板:

    1. {"_id":"zhihu-unanswer","startUrl":["https://www.zhihu.com/topic/19555550/unanswered"],"selectors":[{"id":"aaa","type":"SelectorElementScroll","parentSelectors":["_root"],"selector":"div.List-item","multiple":true,"delay":"2000"},{"id":"title","type":"SelectorLink","parentSelectors":
    2. ["aaa"],"selector":".QuestionItem-title a","multiple":false,"delay":0},{"id":"comments","type":"SelectorText","parentSelectors":["aaa"],"selector":"button.ContentItem-action","multiple":false,"regex":"","delay":0},{"id":"answers","type":"SelectorText","parentSelectors":
    3. ["aaa"],"selector":"a.Button--plain","multiple":false,"regex":"","delay":0}]}

    模板套用步骤:

    (1)进入需要抓取的待回答问题页面,例如:https://www.zhihu.com/topic/19555550/unanswered
    (2)导入模板
    (3)替换 Start URL为要抓取的网页链接
    (4)开始抓取