Skip to content

A golang http.Transport layer that uses Otto to solve Cloudflare challenges

License

Notifications You must be signed in to change notification settings

VTGare/go-cloudflare-scraper

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cloudflare Challenge Solver

A port of cloudflare-scrape.

Usage

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.Close()
	if err != nil {
		log.Fatal(err)
	}
}

About

A golang http.Transport layer that uses Otto to solve Cloudflare challenges

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 55.7%
  • HTML 44.3%