Documentation
¶
Index ¶
- Constants
- Variables
- func DebugOn()
- func Ext(source string) string
- func Hash(url string) string
- func RegisterProxy(addr string, args ...ProxyArgs) (e error)
- func TrimEnd(source string) string
- type AnalyzeLanguageFunc
- type Cache
- func (c *Cache) BaseQuery(url string) (*goquery.Document, error)
- func (c *Cache) ForceGet(url string) (bys []byte, e error)
- func (c *Cache) ForceQuery(url string) (*goquery.Document, error)
- func (c *Cache) Get(url string) (bys []byte, e error)
- func (c *Cache) GetBytes(url string) ([]byte, error)
- func (c *Cache) GetReader(url string, force bool) (io.Reader, error)
- func (c *Cache) Query(url string, force bool) (*goquery.Document, error)
- func (c *Cache) Save(url, to string) (e error)
- type Content
- type Genre
- type GrabBp4xOptions
- type GrabBp4xType
- type GrabJavbusOptions
- type GrabJavdbOptions
- type GrabLanguage
- type IGrab
- type IScrape
- type Options
- type OutputInfo
- type ProxyArgs
- type RangeFunc
- type Sample
- type Star
Constants ¶
View Source
const DefaulBp4xMainPage = "https://www.bp4x.com"
DefaulBp4xMainPage ...
View Source
const DefaultJavbusMainPage = "https://www.javbus.com"
DefaultJavbusMainPage ...
View Source
const DefaultJavdbMainPage = "https://javdb7.com"
DefaultJavdbMainPage ...
Variables ¶
View Source
var DefaultCachePath = "tmp"
DefaultCachePath ...
View Source
var DefaultInfoName = ".info"
DefaultInfoName ...
View Source
var DefaultOutputPath = "image"
DefaultOutputPath ...
Functions ¶
func RegisterProxy ¶ added in v0.0.8
RegisterProxy ...
Types ¶
type AnalyzeLanguageFunc ¶
AnalyzeLanguageFunc ...
type Cache ¶ added in v0.0.8
type Cache struct {
// contains filtered or unexported fields
}
Cache ...
func (*Cache) ForceQuery ¶ added in v0.1.6
type Content ¶
type Content struct { From string //where this Language string Uncensored bool ID string Title string OriginalTitle string Year string ReleaseDate time.Time Studio string Director string MovieSet string Plot string Genres []*Genre Actors []*Star Poster string Thumb string Sample []*Sample Publisher string }
Content ...
func MergeOptimize ¶ added in v0.0.8
MergeOptimize ...
type GrabBp4xOptions ¶
type GrabBp4xOptions func(javbus *grabBp4x)
GrabBp4xOptions ...
func GrabBp4xTypeOption ¶
func GrabBp4xTypeOption(grabType GrabBp4xType) GrabBp4xOptions
GrabBp4xTypeOption ...
type GrabBp4xType ¶
type GrabBp4xType int
GrabBp4xType ...
const ( BP4XTypeJAV GrabBp4xType = iota BP4XTypeAMATEUR BP4XTypeIV BP4XTypeHENTAI )
BP4XTypeJAV ...
type GrabLanguage ¶
type GrabLanguage int
GrabLanguage ...
const ( LanguageEnglish GrabLanguage = iota LanguageJapanese LanguageChineseSimple LanguageChineseTraditional LanguageKorea )
GrabLanguage detail ...
func (GrabLanguage) String ¶ added in v0.1.1
func (g GrabLanguage) String() string
type IGrab ¶
type IGrab interface { MainPage(url string) SetSample(bool) SetExact(bool) SetLanguage(language GrabLanguage) Name() string Find(string) (IGrab, error) HasNext() bool Next() (IGrab, error) Result() ([]Content, error) SetForce(force bool) }
IGrab ...
type IScrape ¶
type IScrape interface { Cache() *Cache Force(b bool) IsGrabSample() (b bool) Find(name string) (e error) Clear() Range(rangeFunc RangeFunc) error OutputCallback(f func(key string, content Content) *OutputInfo) []OutputInfo Output() error }
IScrape ...
type Options ¶ added in v0.0.8
type Options func(impl *scrapeImpl)
Options ...
func ForceOption ¶ added in v0.1.6
type OutputInfo ¶ added in v0.1.9
type OutputInfo struct { Name string Skip bool Force bool OutputPath string CopyInfo bool InfoPath string InfoName string CopyPoster bool PosterPath string PosterName string CopyThumb bool ThumbPath string ThumbName string CopySample bool SamplePath string SampleName string SampleFiles []string ImagePath string InfoExt string }
func DefaultOutputOption ¶ added in v0.1.3
func DefaultOutputOption() *OutputInfo
Source Files
¶
Click to show internal directories.
Click to hide internal directories.