```go
package main
import articleSpider "github.com/PeterYangs/article-spider/v3"
func main() {
f := articleSpider.Form{
Host: "https://www.shouyouzhijia.net",
Channel: "/xinwen_[PAGE]/",
ListSelector: "body > div.main.newex.clearfix > div.LC_lef > div.lef_content > dl",
HrefSelector: " dd > h3 > a",
PageStart: 1,
Length: 3,
DetailFields: map[string]articleSpider.Field{
"title": {Types: articleSpider.Text, Selector: "body > div.Min-cent.W1200 > div.Min_L > div.Left_top > h1"},
},
}
s := articleSpider.NewSpider(f, articleSpider.Normal)
s.Start()
}
```
运行代码后会在static下生成一个excel
![](https://img.kancloud.cn/0b/f7/0bf72752cec62fa68545d95fc710a713_832x818.png)