Documentation ¶
Index ¶
- func CheckForCaptcha(body string) bool
- func CreateParams(paramsLong map[string]string) string
- func IsFingerprintChallenge(response *http.Response) bool
- func IsNewCaptchaChallenge(response *http.Response) bool
- func IsNewIUAMChallenge(response *http.Response) bool
- func MirageLog(message, taskID, module string)
- func MirageSuccess(message, taskID, module string)
- func ReadAndCopyBody(response *http.Response) ([]byte, error)
- func ReadAndUnmarshalBody(respBody io.ReadCloser, x interface{}) error
- type Scraper
- func (scraper *Scraper) ChallengeInitiationPayload() (*http.Response, error)
- func (scraper *Scraper) Do(request *http.Request) (*http.Response, error)
- func (scraper *Scraper) Get(url string) (resp *http.Response, err error)
- func (scraper *Scraper) GetChallengeResult() (*http.Response, error)
- func (scraper *Scraper) GetPage() (*http.Response, error)
- func (scraper *Scraper) GetPayloadFromAPI() (*http.Response, error)
- func (scraper *Scraper) HandleCaptcha() (*http.Response, error)
- func (scraper *Scraper) HandleFinalApi() (*http.Response, error)
- func (scraper *Scraper) HandleLoopError(errFormat string, err error)
- func (scraper *Scraper) HandleRerun() (*http.Response, error)
- func (scraper *Scraper) InitiateCloudflare() (*http.Response, error)
- func (scraper *Scraper) InitiateScript() (*http.Response, error)
- func (scraper *Scraper) Injection(response *http.Response, err error) (*http.Response, error)
- func (scraper *Scraper) Post(url string, contentType string, body io.Reader) (resp *http.Response, err error)
- func (scraper *Scraper) SendMainPayload() (*http.Response, error)
- func (scraper *Scraper) Solve() (*http.Response, error)
- func (scraper *Scraper) SolvePayload() (*http.Response, error)
- func (scraper *Scraper) SubmitCaptcha() (*http.Response, error)
- func (scraper *Scraper) SubmitChallenge() (*http.Response, error)
- func (scraper *Scraper) SubmitFingerprintChallenge() (*http.Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckForCaptcha ¶
func CreateParams ¶
func IsFingerprintChallenge ¶
func IsNewCaptchaChallenge ¶
func IsNewIUAMChallenge ¶
func MirageSuccess ¶
func MirageSuccess(message, taskID, module string)
Success prints a status to the console.
func ReadAndUnmarshalBody ¶
func ReadAndUnmarshalBody(respBody io.ReadCloser, x interface{}) error
Types ¶
type Scraper ¶
type Scraper struct { Client http.Client CaptchaFunction func(originalURL string, siteKey string) (string, error) FingerprintChallenge bool Script string InitScript *http.Response ChallengePayload *http.Response MainPayloadResponse *http.Response InitURL string RequestURL string CaptchaScript string ApiDomain string TimeOut int ErrorDelay int InitHeaders http.Header ChallengeHeaders http.Header SubmitHeaders http.Header OriginalRequest *http.Response Domain string Debug bool Key string AuthParams map[string]string Md string Captcha bool StartTime time.Time SolveRetries int SolveMaxRetries int Result string Name string BaseObj string RequestPass string RequestR string TS int TargetURL string InitPayloadRetries int InitPayloadMaxRetries int KeyStrUriSafe string InitChallengeRetries int InitChallengeMaxRetries int FetchingChallengeRetries int FetchingChallengeMaxRetries int SubmitChallengeRetries int SubmitChallengeMaxRetries int ChallengeResultRetries int ChallengeResultMaxRetries int FinalApi apiResponse SubmitFinalChallengeRetries int SubmitFinalChallengeMaxRetries int RerunRetries int RerunMaxRetries int CaptchaRetries int CaptchaMaxRetries int FirstCaptchaResult apiResponse CaptchaResponseAPI apiResponse SubmitCaptchaRetries int SubmitCaptchaMaxRetries int // contains filtered or unexported fields }
func (*Scraper) ChallengeInitiationPayload ¶
func (*Scraper) GetChallengeResult ¶
func (*Scraper) GetPayloadFromAPI ¶
func (*Scraper) HandleCaptcha ¶
In Progress
func (*Scraper) HandleLoopError ¶
func (*Scraper) InitiateCloudflare ¶
Click to show internal directories.
Click to hide internal directories.