Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 941 Bytes

File metadata and controls

32 lines (23 loc) · 941 Bytes

unofficial-twitter-api-client-go

Install

go get github.com/kenchan0130/unofficial-twitter-api-client-go

Usage

import (
    "github.com/kenchan0130/unofficial-twitter-api-client-go"
)

username := "Input your twitter username"
password := "Input your twitter password of user"
mfaSecret := "Input your twitter MFA Secret of user"

client, _ := NewClient(usernamae, password, MFASecret(mfaSecret))
tweets, _ := client.GetUserLikingTweets(context.Background(), "965113717963735045", 20)

Testing

Environment variables

Name Description
TWITTER_USERNAME Twitter username, same as screen name without @
TWITTER_PASSWORD Twitter password of user
TWITTER_MFA_SECRET Twitter MFA Secret of user