cloudflare-bypasser
Inspired by python module cloudflare-scrape
go get github.com/AurevoirXavier/cloudflare-bypasser-go
- Node.js
package main
import (
"fmt"
bypasser "github.com/AurevoirXavier/cloudflare-bypasser-go"
"net/http"
"os"
)
func main() {
var (
_ = os.Setenv("HTTP_PROXY", "http://127.0.0.1:1087")
client = bypasser.NewBypasser(http.DefaultClient)
req, _ = http.NewRequest("GET", "http://cosplayjav.pl", nil)
userAgent, cookie, _ = client.Bypass(req, 0)
)
fmt.Println(userAgent)
fmt.Println(cookie)
}