20-2 在行某专家所有评论 - 图1

抓取的结果信息包含:

  • 评论人名字
  • 评论日期
  • 参与话题
  • 行家回复(null为未回复)

    结果示例图:

    20-2 在行某专家所有评论 - 图2

    模板:

    1. {"_id":"ximalaya-zhubo-zj","startUrl":["https://www.ximalaya.com/zhubo/1000202/album/"],"selectors":[{"id":"info","type":"SelectorElementScroll","parentSelectors":["_root"],"selector":"div.anchor-user-album-box","multiple":true,"delay":"4000"},{"id":"name","type":"SelectorLink","parentSelectors":
    2. ["info"],"selector":"a.anchor-user-album-title","multiple":false,"delay":0},{"id":"intro","type":"SelectorText","parentSelectors":
    3. ["info"],"selector":"div.anchor-user-album-signature","multiple":false,"regex":"","delay":0},{"id":"jishu","type":"SelectorText","parentSelectors":
    4. ["info"],"selector":".p-r-20 span","multiple":false,"regex":"","delay":0},{"id":"listens","type":"SelectorText","parentSelectors":
    5. ["info"],"selector":"div.fl:nth-of-type(2) span","multiple":false,"regex":"","delay":0},{"id":"help","type":"SelectorElementScroll","parentSelectors":["_root"],"selector":"aa","multiple":false,"delay":0}]}

    模板套用步骤:

    (1)进入需要抓取的主播专辑页面,例如:https://www.ximalaya.com/zhubo/1000202/album/
    (2)导入模板
    (3)下拉到最底部(或合适位置)
    (4)点击”data preview“
    (5)全选 -> 复制 ->粘贴到 excel 文件里
    (6)删除杂乱数据