change prefix
This commit is contained in:
parent
7363f676bf
commit
8d58843bdb
1 changed files with 9 additions and 9 deletions
18
scraper.go
18
scraper.go
|
|
@ -28,7 +28,7 @@ func New() *Scraper {
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetSearchLive enable/disable realtime search
|
// SetSearchLive enable/disable realtime search
|
||||||
func (s *Scraper) SearchLive(srctype bool) *Scraper {
|
func (s *Scraper) SetSearchLive(srctype bool) *Scraper {
|
||||||
if srctype {
|
if srctype {
|
||||||
s.searchMode = "live"
|
s.searchMode = "live"
|
||||||
}
|
}
|
||||||
|
|
@ -36,12 +36,12 @@ func (s *Scraper) SearchLive(srctype bool) *Scraper {
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetSearchLive wrapper for default SetSearchLive
|
// SetSearchLive wrapper for default SetSearchLive
|
||||||
func SearchLive(srctype bool) *Scraper {
|
func SetSearchLive(srctype bool) *Scraper {
|
||||||
return defaultScraper.SearchLive(srctype)
|
return defaultScraper.SetSearchLive(srctype)
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetSearchPhotos filter search for photos only
|
// SetSearchPhotos filter search for photos only
|
||||||
func (s *Scraper) SearchPhotos(srctype bool) *Scraper {
|
func (s *Scraper) SetSearchPhotos(srctype bool) *Scraper {
|
||||||
if srctype {
|
if srctype {
|
||||||
s.searchMode = "image"
|
s.searchMode = "image"
|
||||||
}
|
}
|
||||||
|
|
@ -49,12 +49,12 @@ func (s *Scraper) SearchPhotos(srctype bool) *Scraper {
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetSearchPhotos wrapper for default SetSearchPhotos
|
// SetSearchPhotos wrapper for default SetSearchPhotos
|
||||||
func SearchPhotos(srctype bool) *Scraper {
|
func SetSearchPhotos(srctype bool) *Scraper {
|
||||||
return defaultScraper.SearchPhotos(srctype)
|
return defaultScraper.SetSearchPhotos(srctype)
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetSearchVideos filter search for videos only
|
// SetSearchVideos filter search for videos only
|
||||||
func (s *Scraper) SearchVideos(srctype bool) *Scraper {
|
func (s *Scraper) SetSearchVideos(srctype bool) *Scraper {
|
||||||
if srctype {
|
if srctype {
|
||||||
s.searchMode = "video"
|
s.searchMode = "video"
|
||||||
}
|
}
|
||||||
|
|
@ -62,8 +62,8 @@ func (s *Scraper) SearchVideos(srctype bool) *Scraper {
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetSearchVideos wrapper for default SetSearchVideos
|
// SetSearchVideos wrapper for default SetSearchVideos
|
||||||
func SearchVideos(srctype bool) *Scraper {
|
func SetSearchVideos(srctype bool) *Scraper {
|
||||||
return defaultScraper.SearchVideos(srctype)
|
return defaultScraper.SetSearchVideos(srctype)
|
||||||
}
|
}
|
||||||
|
|
||||||
// WithReplies enable/disable load timeline with tweet replies
|
// WithReplies enable/disable load timeline with tweet replies
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue