Skip to content
A golang http.Transport layer that uses Otto to solve Cloudflare challenges
Branch: master
Clone or download
Latest commit 6b7caee Jul 1, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
_examples
cli
vendor
README.md
cloudflare.go
cloudflare_test.go

README.md

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)
	}
}
You can’t perform that action at this time.