twitter

package
v0.0.0-...-2b78ec0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Twitter encumberance utilities Initially based on https://github.com/tee-he-he/err_err_ttyl/blob/a3f296a5caaf7f23afa20c8841da39fe18a275bd/scripts/twitter.py

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallbackQuery

type CallbackQuery struct {
	OAuthToken    string `form:"oauth_token"`
	OAuthVerifier string `form:"oauth_verifier"`
}

type TwitterAuthTokens

type TwitterAuthTokens struct {
	CT0       string `json:"ct0"`
	AuthToken string `json:"auth_token"`
}

type TwitterEncumberer

type TwitterEncumberer struct {
	// contains filtered or unexported fields
}

func NewTwitterEncumberer

func NewTwitterEncumberer(credentials TwitterEncumbererCredentials, loginServerIp, loginServerPort string, getVerificationCode func(ctx context.Context) (string, error)) *TwitterEncumberer

func (*TwitterEncumberer) Encumber

func (*TwitterEncumberer) GetAccessKeys

func (t *TwitterEncumberer) GetAccessKeys(ctx context.Context, driver *selenium_utils.SeleniumDriver) (*oauth1.Token, error)

func (*TwitterEncumberer) GetCookies

func (*TwitterEncumberer) Login

func (*TwitterEncumberer) SetNewPassword

func (t *TwitterEncumberer) SetNewPassword(ctx context.Context, driver *selenium_utils.SeleniumDriver, newPassword string) error

type TwitterEncumbererCredentials

type TwitterEncumbererCredentials struct {
	TwitterUsername  string
	TwitterPassword  string
	TwitterEmail     string
	TwitterAppKey    string
	TwitterAppSecret string
}

type TwitterEncumbererOutput

type TwitterEncumbererOutput struct {
	NewPassword    string
	AuthTokens     string
	OAuthTokenPair *oauth1.Token
}

type TwitterLoginServer

type TwitterLoginServer struct {
	// contains filtered or unexported fields
}

func NewTwitterLoginServer

func NewTwitterLoginServer(ip, port string, twitterAppKey, twitterAppSecret string) *TwitterLoginServer

func (*TwitterLoginServer) GetCallbackRoute

func (s *TwitterLoginServer) GetCallbackRoute() string

func (*TwitterLoginServer) GetLoginRoute

func (s *TwitterLoginServer) GetLoginRoute() string

func (*TwitterLoginServer) Start

func (s *TwitterLoginServer) Start()

func (*TwitterLoginServer) WaitForTokenPair

func (s *TwitterLoginServer) WaitForTokenPair(ctx context.Context) (*oauth1.Token, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL