search

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Rutracker login data
	RutrackerUser string
	RutrackerPass string
)

Functions

func GET

func GET(rawurl string, jar *Jar) (*http.Response, error)

Types

type Jar

type Jar struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewJar

func NewJar() *Jar

func POST

func POST(rawurl string, form url.Values) (*http.Response, *Jar, error)

func (*Jar) Cookies

func (jar *Jar) Cookies(u *url.URL) []*http.Cookie

func (*Jar) SetCookies

func (jar *Jar) SetCookies(u *url.URL, cookies []*http.Cookie)

type Result

type Result struct {
	Title    string
	Magnet   string
	Size     int64
	Seeders  int64
	Leechers int64
	Created  time.Time
}

func SearchPirateBay

func SearchPirateBay(query string, page int) ([]Result, []int, error)

func SearchRutracker

func SearchRutracker(query string, page int) ([]Result, []int, error)

func SearchTokioTosho

func SearchTokioTosho(query string, page int) ([]Result, []int, error)

func (*Result) FormattedCreatedDate

func (r *Result) FormattedCreatedDate() string

Jump to

Keyboard shortcuts

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