使用 reqwest 抓取网页内容
2023-05-19 13:55 作者:偷学rust的欧老叭 | 我要投稿
需要用到的 crate 有 tokio、reqwest、select、error-chain。
通过 reqwest 获取内容,再转为 String。
再通过 selcet::document:Doucment 过滤出想要的数据。
最后输出到控制台。




需要用到的 crate 有 tokio、reqwest、select、error-chain。
通过 reqwest 获取内容,再转为 String。
再通过 selcet::document:Doucment 过滤出想要的数据。
最后输出到控制台。