diff --git a/auth.go b/auth.go index 91e34bc..66ffce1 100644 --- a/auth.go +++ b/auth.go @@ -385,6 +385,10 @@ func (s *Scraper) SetCookies(cookies []*http.Cookie) { s.client.Jar.SetCookies(twURL, cookies) } +func (s *Scraper) ClearCookies() { + s.client.Jar, _ = cookiejar.New(nil) +} + func (s *Scraper) sign(method string, ref *url.URL) string { m := make(map[string]string) m["oauth_consumer_key"] = appConsumerKey