jtorrent

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client struct is for sending tasks

type Data

type Data struct {
	// contains filtered or unexported fields
}

Data struct is for receiving final data

type Nyaa

type Nyaa struct {
	Name        string
	Keyword     string
	SearchURL   string
	ScrapedData map[string][]string
}

Nyaa struct is for Nyaa torrent web site

func (*Nyaa) Crawl

func (n *Nyaa) Crawl(keyword string) map[string][]string

Crawl torrent data from web site NOTE: status code error: 429 429 Too Many Requests for goroutines Max concurrent request: 5

func (*Nyaa) GetInfo added in v0.3.0

func (n *Nyaa) GetInfo(url string) []string

GetInfo method returns torrent info

type SClient

type SClient struct {
	// contains filtered or unexported fields
}

SClient struct is for sending tasks

type SData

type SData struct {
	// contains filtered or unexported fields
}

SData struct is for receiving final data

type SuKeBe

type SuKeBe struct {
	Name        string
	Keyword     string
	SearchURL   string
	ScrapedData map[string][]string
}

SuKeBe struct is for sukebei torrent web site

func (*SuKeBe) Crawl

func (s *SuKeBe) Crawl(keyword string) map[string][]string

Crawl torrent data from web site NOTE: status code error: 429 429 Too Many Requests for goroutines Max concurrent request: 5

func (*SuKeBe) GetInfo added in v0.3.0

func (s *SuKeBe) GetInfo(url string) []string

GetInfo method returns torrent info

Jump to

Keyboard shortcuts

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