update quick start example
This commit is contained in:
parent
e6d6dc71a9
commit
6a0f92e314
1 changed files with 1 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue