parser

package
v0.0.0-...-4ae7f04 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Support

func Support() []string

Support return supported website lists

Types

type Parser

type Parser interface {
	// Chapter parse chapter page
	Chapter(url string) (map[string]interface{}, error)
	// Comic parse comic main page return useful information
	Comic(url string) (map[string]interface{}, error)
	// Filename get picture name from url
	Filename(string) string
	// Label return name + domain
	Label() string
	// Less compare two chapters' title
	Less(string, string) bool
	// Match check chapter title match input index or not
	Match(int, string) bool
	// Search search title in website and return the url of matched comic
	Search(string) (string, error)
}

Parser is the interface to wrap website methods

func GetParser

func GetParser(v string) Parser

GetParser find the Parser using input parameter, parameter can be Parser's name or domain

Jump to

Keyboard shortcuts

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