Deprecate default scraper
This commit is contained in:
parent
6bf6dc4b69
commit
bfb4020597
9 changed files with 29 additions and 42 deletions
|
|
@ -73,7 +73,7 @@ func (s *Scraper) SetSearchMode(mode SearchMode) *Scraper {
|
|||
return s
|
||||
}
|
||||
|
||||
// SetSearchMode wrapper for default Scraper
|
||||
// Deprecated: SetSearchMode wrapper for default Scraper
|
||||
func SetSearchMode(mode SearchMode) *Scraper {
|
||||
return defaultScraper.SetSearchMode(mode)
|
||||
}
|
||||
|
|
@ -84,7 +84,7 @@ func (s *Scraper) WithDelay(seconds int64) *Scraper {
|
|||
return s
|
||||
}
|
||||
|
||||
// WithDelay wrapper for default Scraper
|
||||
// Deprecated: WithDelay wrapper for default Scraper
|
||||
func WithDelay(seconds int64) *Scraper {
|
||||
return defaultScraper.WithDelay(seconds)
|
||||
}
|
||||
|
|
@ -95,7 +95,7 @@ func (s *Scraper) WithReplies(b bool) *Scraper {
|
|||
return s
|
||||
}
|
||||
|
||||
// WithReplies wrapper for default Scraper
|
||||
// Deprecated: WithReplies wrapper for default Scraper
|
||||
func WithReplies(b bool) *Scraper {
|
||||
return defaultScraper.WithReplies(b)
|
||||
}
|
||||
|
|
@ -163,7 +163,7 @@ func (s *Scraper) SetProxy(proxyAddr string) error {
|
|||
return errors.New("only support http(s) or socks5 protocol")
|
||||
}
|
||||
|
||||
// SetProxy wrapper for default Scraper
|
||||
// Deprecated: SetProxy wrapper for default Scraper
|
||||
func SetProxy(proxy string) error {
|
||||
return defaultScraper.SetProxy(proxy)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue