go语言与爬虫_mustcompile findallstring-CSDN博客

网站介绍:文章浏览阅读182次。go语言与爬虫0. 网页爬虫横向爬取:找寻网页的页与页之间的规律。分页器规律纵向爬取:找寻网页之间条目与条目之间的规律。1. 爬取流程明确URL,找寻网页分页器规律获取网页数据 http.Get()使用正则表达式筛选有用信息 MustCompile、FindallstringSubmatch保存信息到本地2. 爬取信息横向规律:https://movie.douban.com/top250?start=25&filter= – 第二页https://movie._mustcompile findallstring