获取列表上的主图
![](https://img.kancloud.cn/0c/e2/0ce2468d6809f2b1822e72ca8d2a4236_898x774.png)
```
package main
import articleSpider "github.com/PeterYangs/article-spider/v3"
func main() {
f := articleSpider.Form{
Host: "https://www.shouyouzhijia.net",
Channel: "/xinwen_[PAGE]/",
PageStart: 1,
Length: 3,
ListSelector: "body > div.main.newex.clearfix > div.LC_lef > div.lef_content > dl",
HrefSelector: " dd > h3 > a",
ListFields: map[string]articleSpider.Field{
"img": {Types: articleSpider.Image, Selector: " dt > a > img"},
},
}
s := articleSpider.NewSpider(f, articleSpider.Normal)
s.Start()
}
```
>[info]这里是**ListFields**