torrent

package module
v1.3.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2021 License: OSL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Rarbg Mechanize

Index

Constants

View Source
const (
	AJAXPHP    = "/threat_defence_ajax.php"
	DefencePHP = "/threat_defence.php"
	Origin     = "http://rarbg.to"
	Sleep      = 4 * time.Second
)

Variables

This section is empty.

Functions

func Solve added in v1.2.6

func Solve(php string) (solve string, err error)

This returns solution to the Captcha at the given path. After this, you will want to call IamHuman.

Types

type Defence added in v1.2.1

type Defence struct {
	CID string
	I   string
	SK  string
}

func NewDefence added in v1.2.3

func NewDefence() (*Defence, error)

This is the entrypoint into getting the SKT cookie, should you need to do that. After this you will want to call ThreatCaptcha.

func (Defence) IamHuman added in v1.2.3

func (d Defence) IamHuman(id, solve string) error

This saves the SKT cookie to the Cache folder for later use.

func (Defence) ThreatCaptcha added in v1.2.6

func (d Defence) ThreatCaptcha() (php string, id string, err error)

This returns path to Captcha image, as well as Captcha ID. After this, you will want to call Solve.

type Result added in v1.1.1

type Result struct {
	Genre   string
	Image   string
	Seeders string
	Size    string
	Title   string
	Torrent string
}

func NewResults added in v1.3.1

func NewResults(search, page string) ([]Result, error)

Perform a search with the given value. Note you will need to have previously saved the SKT cookie to the Cache folder using IamHuman.

Directories

Path Synopsis
OCR
OCR

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL