Documentation ¶
Overview ¶
Package scraper 网站数据刮削器.
scraper通过IScraper接口,对具体网站进行数据刮削, 执行刮削操作后,将页面转换为树结构,并存储在刮削对象中, 当需要任何数据时,执行对应方法,从树结构中查找对应信息。
Index ¶
- func GetDmmIntro(code, proxy string) string
- type CaribBeanComScraper
- func (s *CaribBeanComScraper) Fetch(code string) error
- func (s *CaribBeanComScraper) GetActors() map[string]string
- func (s *CaribBeanComScraper) GetCover() string
- func (s *CaribBeanComScraper) GetDirector() string
- func (s *CaribBeanComScraper) GetIntro() string
- func (s *CaribBeanComScraper) GetNumber() string
- func (s *CaribBeanComScraper) GetRelease() string
- func (s *CaribBeanComScraper) GetRuntime() string
- func (s *CaribBeanComScraper) GetSeries() string
- func (s *CaribBeanComScraper) GetStudio() string
- func (s *CaribBeanComScraper) GetTags() []string
- func (s *CaribBeanComScraper) GetTitle() string
- func (s *CaribBeanComScraper) GetURI() string
- type DMMScraper
- func (s *DMMScraper) Fetch(code string) error
- func (s *DMMScraper) GetActors() map[string]string
- func (s *DMMScraper) GetCover() string
- func (s *DMMScraper) GetDirector() string
- func (s *DMMScraper) GetIntro() string
- func (s *DMMScraper) GetNumber() string
- func (s *DMMScraper) GetRelease() string
- func (s *DMMScraper) GetRuntime() string
- func (s *DMMScraper) GetSeries() string
- func (s *DMMScraper) GetStudio() string
- func (s *DMMScraper) GetTags() []string
- func (s *DMMScraper) GetTitle() string
- func (s *DMMScraper) GetURI() string
- type FC2Scraper
- func (s *FC2Scraper) Fetch(code string) error
- func (s *FC2Scraper) GetActors() map[string]string
- func (s *FC2Scraper) GetCover() string
- func (s *FC2Scraper) GetDirector() string
- func (s *FC2Scraper) GetIntro() string
- func (s *FC2Scraper) GetNumber() string
- func (s *FC2Scraper) GetRelease() string
- func (s *FC2Scraper) GetRuntime() string
- func (s *FC2Scraper) GetSeries() string
- func (s *FC2Scraper) GetStudio() string
- func (s *FC2Scraper) GetTags() []string
- func (s *FC2Scraper) GetTitle() string
- func (s *FC2Scraper) GetURI() string
- type HeydougaScraper
- func (s *HeydougaScraper) Fetch(code string) error
- func (s *HeydougaScraper) GetActors() map[string]string
- func (s *HeydougaScraper) GetCover() string
- func (s *HeydougaScraper) GetDirector() string
- func (s *HeydougaScraper) GetIntro() string
- func (s *HeydougaScraper) GetNumber() string
- func (s *HeydougaScraper) GetRelease() string
- func (s *HeydougaScraper) GetRuntime() string
- func (s *HeydougaScraper) GetSeries() string
- func (s *HeydougaScraper) GetStudio() string
- func (s *HeydougaScraper) GetTags() []string
- func (s *HeydougaScraper) GetTitle() string
- func (s *HeydougaScraper) GetURI() string
- type HeyzoScraper
- func (s *HeyzoScraper) Fetch(code string) error
- func (s *HeyzoScraper) GetActors() map[string]string
- func (s *HeyzoScraper) GetCover() string
- func (s *HeyzoScraper) GetDirector() string
- func (s *HeyzoScraper) GetIntro() string
- func (s *HeyzoScraper) GetNumber() string
- func (s *HeyzoScraper) GetRelease() string
- func (s *HeyzoScraper) GetRuntime() string
- func (s *HeyzoScraper) GetSeries() string
- func (s *HeyzoScraper) GetStudio() string
- func (s *HeyzoScraper) GetTags() []string
- func (s *HeyzoScraper) GetTitle() string
- func (s *HeyzoScraper) GetURI() string
- type IScraper
- type JavBusScraper
- func (s *JavBusScraper) Fetch(code string) error
- func (s *JavBusScraper) GetActors() map[string]string
- func (s *JavBusScraper) GetCover() string
- func (s *JavBusScraper) GetDirector() string
- func (s *JavBusScraper) GetIntro() string
- func (s *JavBusScraper) GetNumber() string
- func (s *JavBusScraper) GetRelease() string
- func (s *JavBusScraper) GetRuntime() string
- func (s *JavBusScraper) GetSeries() string
- func (s *JavBusScraper) GetStudio() string
- func (s *JavBusScraper) GetTags() []string
- func (s *JavBusScraper) GetTitle() string
- func (s *JavBusScraper) GetURI() string
- type JavDBScraper
- func (s *JavDBScraper) Fetch(code string) error
- func (s *JavDBScraper) GetActors() map[string]string
- func (s *JavDBScraper) GetCover() string
- func (s *JavDBScraper) GetDirector() string
- func (s *JavDBScraper) GetIntro() string
- func (s *JavDBScraper) GetNumber() string
- func (s *JavDBScraper) GetRelease() string
- func (s *JavDBScraper) GetRuntime() string
- func (s *JavDBScraper) GetSeries() string
- func (s *JavDBScraper) GetStudio() string
- func (s *JavDBScraper) GetTags() []string
- func (s *JavDBScraper) GetTitle() string
- func (s *JavDBScraper) GetURI() string
- type SiroScraper
- func (s *SiroScraper) Fetch(code string) error
- func (s *SiroScraper) GetActors() map[string]string
- func (s *SiroScraper) GetCover() string
- func (s *SiroScraper) GetDirector() string
- func (s *SiroScraper) GetIntro() string
- func (s *SiroScraper) GetNumber() string
- func (s *SiroScraper) GetRelease() string
- func (s *SiroScraper) GetRuntime() string
- func (s *SiroScraper) GetSeries() string
- func (s *SiroScraper) GetStudio() string
- func (s *SiroScraper) GetTags() []string
- func (s *SiroScraper) GetTitle() string
- func (s *SiroScraper) GetURI() string
- type TokyoHotScraper
- func (s *TokyoHotScraper) Fetch(code string) error
- func (s *TokyoHotScraper) GetActors() map[string]string
- func (s *TokyoHotScraper) GetCover() string
- func (s *TokyoHotScraper) GetDirector() string
- func (s *TokyoHotScraper) GetIntro() string
- func (s *TokyoHotScraper) GetNumber() string
- func (s *TokyoHotScraper) GetRelease() string
- func (s *TokyoHotScraper) GetRuntime() string
- func (s *TokyoHotScraper) GetSeries() string
- func (s *TokyoHotScraper) GetStudio() string
- func (s *TokyoHotScraper) GetTags() []string
- func (s *TokyoHotScraper) GetTitle() string
- func (s *TokyoHotScraper) GetURI() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CaribBeanComScraper ¶
type CaribBeanComScraper struct { Proxy string // 代理配置 // contains filtered or unexported fields }
CaribBeanComScraper 加勒比网站刮削器
func NewCaribBeanComScraper ¶
func NewCaribBeanComScraper(proxy string) *CaribBeanComScraper
NewCaribBeanComScraper 返回一个被初始化的加勒比刮削对象
proxy 字符串参数,传入代理信息
func (*CaribBeanComScraper) GetActors ¶
func (s *CaribBeanComScraper) GetActors() map[string]string
GetActors 获取演员
func (*CaribBeanComScraper) GetCover ¶
func (s *CaribBeanComScraper) GetCover() string
GetCover 背景图片
func (*CaribBeanComScraper) GetDirector ¶
func (s *CaribBeanComScraper) GetDirector() string
GetDirector 获取导演
func (*CaribBeanComScraper) GetIntro ¶
func (s *CaribBeanComScraper) GetIntro() string
GetIntro 获取简介
func (*CaribBeanComScraper) GetNumber ¶
func (s *CaribBeanComScraper) GetNumber() string
GetNumber 正确番号
func (*CaribBeanComScraper) GetRelease ¶
func (s *CaribBeanComScraper) GetRelease() string
GetRelease 发行时间
func (*CaribBeanComScraper) GetRuntime ¶
func (s *CaribBeanComScraper) GetRuntime() string
GetRuntime 影片时长
func (*CaribBeanComScraper) GetSeries ¶
func (s *CaribBeanComScraper) GetSeries() string
GetSeries 影片系列
func (*CaribBeanComScraper) GetStudio ¶
func (s *CaribBeanComScraper) GetStudio() string
GetStudio 获取厂商
func (*CaribBeanComScraper) GetTitle ¶
func (s *CaribBeanComScraper) GetTitle() string
GetTitle 获取标题
type DMMScraper ¶
type DMMScraper struct { Proxy string // 代理配置 // contains filtered or unexported fields }
DMMScraper dmm网站刮削器
func NewDMMScraper ¶
func NewDMMScraper(proxy string) *DMMScraper
NewDMMScraper 返回一个被初始化的dmm刮削对象
proxy 字符串参数,传入代理信息
type FC2Scraper ¶
type FC2Scraper struct { Proxy string // 代理设置 // contains filtered or unexported fields }
FC2Scraper fc2网站刮削器
func NewFC2Scraper ¶
func NewFC2Scraper(proxy string) *FC2Scraper
NewFC2Scraper 返回一个被初始化的fc2刮削对象
proxy 字符串参数,传入代理信息
type HeydougaScraper ¶
type HeydougaScraper struct { Proxy string // 代理配置 // contains filtered or unexported fields }
HeydougaScraper heydouga网站刮削器
func NewHeydougaScraper ¶
func NewHeydougaScraper(proxy string) *HeydougaScraper
NewHeydougaScraper 返回一个被初始化的heydouga刮削对象
proxy 字符串参数,传入代理信息
func (*HeydougaScraper) GetActors ¶
func (s *HeydougaScraper) GetActors() map[string]string
GetActors 获取演员
func (*HeydougaScraper) GetDirector ¶
func (s *HeydougaScraper) GetDirector() string
GetDirector 获取导演
type HeyzoScraper ¶
type HeyzoScraper struct { Proxy string // 代理配置 // contains filtered or unexported fields }
HeyzoScraper heyzo网站刮削器
func NewHeyzoScraper ¶
func NewHeyzoScraper(proxy string) *HeyzoScraper
NewHeyzoScraper 返回一个被初始化的heyzo刮削对象
proxy 字符串参数,传入代理信息
func (*HeyzoScraper) GetActors ¶
func (s *HeyzoScraper) GetActors() map[string]string
GetActors 获取演员
type IScraper ¶
type IScraper interface { // Fetch 执行刮削,并返回刮削结果 // // code 字符串参数,传入番号信息 Fetch(code string) error // GetURI 获取刮削的页面地址 GetURI() string // GetNumber 获取最终的正确番号信息 GetNumber() string // GetTitle 从刮削结果中获取影片标题 GetTitle() string // GetIntro 从刮削结果中获取影片简介 GetIntro() string // GetDirector 从刮削结果中获取影片导演 GetDirector() string // GetRelease 从刮削结果中获取发行时间 GetRelease() string // GetRuntime 从刮削结果中获取影片时长 GetRuntime() string // GetStudio 从刮削结果中获取影片厂商 GetStudio() string // GetSeries 从刮削结果中获取影片系列 GetSeries() string // GetTags 从刮削结果中获取影片标签 GetTags() []string // GetCover 从刮削结果中获取背景图片 GetCover() string // GetActors 从刮削结果中获取影片演员 GetActors() map[string]string }
IScraper 刮削器接口
type JavBusScraper ¶
type JavBusScraper struct { Site string // 免翻地址 Proxy string // 代理配置 // contains filtered or unexported fields }
JavBusScraper javbus网站刮削器
func NewJavBusScraper ¶
func NewJavBusScraper(site, proxy string) *JavBusScraper
NewJavBusScraper 返回一个被初始化的javbus刮削对象
site 字符串参数,传入免翻地址, proxy 字符串参数,传入代理信息
func (*JavBusScraper) GetActors ¶
func (s *JavBusScraper) GetActors() map[string]string
GetActors 获取演员
type JavDBScraper ¶
type JavDBScraper struct { Site string // 免翻地址 Proxy string // 代理配置 // contains filtered or unexported fields }
JavDBScraper javdb网站刮削器
func NewJavDBScraper ¶
func NewJavDBScraper(site, proxy string) *JavDBScraper
NewJavDBScraper 返回一个被初始化的javdb刮削对象
site 字符串参数,传入免翻地址, proxy 字符串参数,传入代理信息
func (*JavDBScraper) GetActors ¶
func (s *JavDBScraper) GetActors() map[string]string
GetActors 获取演员
type SiroScraper ¶
type SiroScraper struct { Proxy string // 代理配置 // contains filtered or unexported fields }
SiroScraper siro网站刮削器
func NewSiroScraper ¶
func NewSiroScraper(proxy string) *SiroScraper
NewSiroScraper 返回一个被初始化的siro刮削对象
proxy 字符串参数,传入代理信息
type TokyoHotScraper ¶
type TokyoHotScraper struct { Proxy string // 代理配置 // contains filtered or unexported fields }
TokyoHotScraper tokyohot网站刮削器
func NewTokyoHotScraper ¶
func NewTokyoHotScraper(proxy string) *TokyoHotScraper
NewTokyoHotScraper 返回一个被初始化的tokyohot刮削对象
proxy 字符串参数,传入代理信息
func (*TokyoHotScraper) GetActors ¶
func (s *TokyoHotScraper) GetActors() map[string]string
GetActors 获取演员
func (*TokyoHotScraper) GetDirector ¶
func (s *TokyoHotScraper) GetDirector() string
GetDirector 获取导演