scraper

package
v0.0.0-...-09a8973 Latest Latest
Warning

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

Go to latest
Published: May 14, 2023 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

Copyright © 2022 Shubh Karman Singh <sksingh2211@gmail.com> All rights reserved. This Project is under BSD-3 License Clause. Look at License for more detail.

Copyright © 2022 Shubh Karman Singh <sksingh2211@gmail.com> All rights reserved. This Project is under BSD-3 License Clause. Look at License for more detail.

Copyright © 2022 Shubh Karman Singh <sksingh2211@gmail.com> All rights reserved. This Project is under BSD-3 License Clause. Look at License for more detail.

Index

Constants

View Source
const TARGET_1337X = "1337x"
View Source
const TARGET_PIRATEBAY = "pirate-bay"

Variables

This section is empty.

Functions

func GetAllowedDomain

func GetAllowedDomain(target string) string

Types

type QueryContext

type QueryContext struct {
	Type   string //movie, series
	Query  string
	Target string
}

func NewQueryContext

func NewQueryContext(flagtype string, query string, target string) *QueryContext

type Result

type Result interface {
}

Interface that accepts any type of result coming from Scraper

type Results

type Results []Result

type Scraper

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

func NewScraper

func NewScraper(domain string) *Scraper

func (*Scraper) Scrape

func (s *Scraper) Scrape(context *QueryContext) (results []Result, err error)

Jump to

Keyboard shortcuts

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