1-14 知乎某专栏下所有文章 - 图1

抓取的结果信息包含:

  • 文章标题
  • 文章链接
  • 作者
  • 时间
  • 赞同数
  • 评论数

    结果示例图:

    1-14 知乎某专栏下所有文章 - 图2

    模板:

    1. {"_id":"zhihu-aliyun","startUrl":["https://zhuanlan.zhihu.com/aliyunedu"],"selectors":[{"id":"outer","type":"SelectorElementScroll","parentSelectors":["_root"],"selector":"section.Column-ArticleList div li.ArticleItem","multiple":true,"delay":"2000"},{"id":"title","type":"SelectorLink","parentSelectors":
    2. ["outer"],"selector":"> a:nth-of-type(1)","multiple":false,"delay":0},{"id":"author","type":"SelectorText","parentSelectors":["outer"],"selector":"div.AuthorInfo-head","multiple":false,"regex":"","delay":0},{"id":"time","type":"SelectorText","parentSelectors":
    3. ["outer"],"selector":"div.AuthorInfo-detail","multiple":false,"regex":"","delay":0},{"id":"agrees","type":"SelectorText","parentSelectors":["outer"],"selector":"button.VoteButton--up","multiple":false,"regex":"","delay":0},{"id":"comments","type":"SelectorText","parentSelectors":["outer"],"selector":"button.BottomActions-CommentBtn","multiple":false,"regex":"","delay":0}]}

    模板套用步骤:

    (1)进入需要抓取的专栏文章列表页面,例如:https://zhuanlan.zhihu.com/aliyunedu
    (2)导入模板
    (3)替换 Start URL为要抓取的网页链接
    (4)开始抓取