Add GetCookies and SetCookies

This commit is contained in:
Alexander Sheiko 2023-05-10 11:42:47 +03:00
parent deb946cf22
commit f0d7735a76
6 changed files with 97 additions and 7 deletions

View file

@ -2,7 +2,6 @@ package twitterscraper_test
import (
"context"
"os"
"testing"
twitterscraper "github.com/n0madic/twitter-scraper"
@ -14,7 +13,7 @@ func authSearchScraper() error {
if searchScraper.IsLoggedIn() {
return nil
}
return searchScraper.Login(os.Getenv("TWITTER_USERNAME"), os.Getenv("TWITTER_PASSWORD"))
return searchScraper.Login(username, password)
}
func TestFetchSearchCursor(t *testing.T) {