rarbg

package
v1.11.1 Latest Latest
Warning

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

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

Documentation

Overview

RARBG

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

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

type Defence struct {
	CID string
	I   string
	SK  string
}

func NewDefence

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

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

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

func (Defence) ThreatCaptcha

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

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

func NewResults

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.

Jump to

Keyboard shortcuts

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