From 6a0f92e3149814b2818ceb8f7d94599285492b7f Mon Sep 17 00:00:00 2001 From: Valentine Date: Thu, 21 Mar 2024 09:24:42 +0300 Subject: [PATCH] update quick start example --- README.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/README.md b/README.md index 751a1dc..843b4cd 100644 --- a/README.md +++ b/README.md @@ -64,11 +64,8 @@ import ( ) func main() { - authToken := "auth_token" - ct0 := "ct0" - scraper := twitterscraper.New() - scraper.SetAuthToken(authToken, ct0) + scraper.SetAuthToken(twitterscraper.AuthToken{Token: "auth_token", CSRFToken: "ct0"}) // After setting Cookies or AuthToken you have to execute IsLoggedIn method. // Without it, scraper wouldn't be able to make requests that requires authentication