Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Rule ¶
func Rule( host string, channel string, limit int, pageStart int, listSelector string, listHrefSelector string, titleSelector string, contentSelector string, dirs string, imagePrefix string)
*
host:域名 例:https://www.d1xz.net/ channel:栏目 例:bazi/list_[PAGE].html limit: 爬取总页面 pageStart:起始页面 listSelector:列表选择器 listHrefSelector:#列表a链接选择器 titleSelector:标题选择器 contentSelector:内容选择器 dirs:图片文件夹 imagePrefix:图片链接前缀
Types ¶
Click to show internal directories.
Click to hide internal directories.