发布时间
结果示例图:
模板:
{"_id":"doulie","startUrl":["https://www.douban.com/doulist/37059404/?start=[0-300:25]&sort=time&playable=0&sub_type="],"selectors":[{"id":"outer","type":"SelectorElement","parentSelectors":
["_root"],"selector":"div:nth-of-type(n+6) div.mod","multiple":true,"delay":"2000"},{"id":"title","type":"SelectorLink","parentSelectors":
["outer"],"selector":"div.title a","multiple":false,"delay":0},{"id":"intro","type":"SelectorText","parentSelectors":["outer"],"selector":"div.abstract","multiple":false,"regex":"","delay":0},{"id":"likes","type":"SelectorText","parentSelectors":["outer"],"selector":"span.count","multiple":false,"regex":"","delay":0},{"id":"time","type":"SelectorText","parentSelectors":
["outer"],"selector":".time span","multiple":false,"regex":"","delay":0}]}
模板套用步骤:
(1)进入需要抓取的豆列页面,例如:https://www.douban.com/doulist/37059404/?start=0&sort=time&playable=0&sub_type=
(2)导入模板
(3)替换 Start URL为要抓取的网页链接(抓取多页需修改 Start URL 里的页码数)
(4)开始抓取