-
golang http.Transport层的go-cloudflare-scraper工具通过采用Otto技术来应对Cloudflare挑战
资源介绍
Cloudflare挑战求解器
端口。
用法
package main
import (
"github.com/cardigann/go-cloudflare-scraper"
)
func main () {
scraper , err := scraper . NewTransport ( http . DefaultTransport )
if err != nil {
log . Fatal ( err )
}
c := http. Client { Transport : scraper }
res , err := c . Get ( ts . URL )
if err != nil {
log . Fatal ( err )
}
body , err = ioutil . ReadAll ( res . Body )
res . Body