Skip to content

How to use auth token for retrieving more tweets/posts? #342

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
dhanyg opened this issue Mar 30, 2025 · 2 comments
Open

How to use auth token for retrieving more tweets/posts? #342

dhanyg opened this issue Mar 30, 2025 · 2 comments

Comments

@dhanyg
Copy link

dhanyg commented Mar 30, 2025

Hello, when using search_tweet method there is cursor parameter with auth token. What kind of token is that? I see some keys in Twitter/X Developer Dashboard which are customer key, customer secret, access token key, and access token secret/ Which one should I use? I tried access token key but it didn't work.

client = Client('id-ID')
await client.login(auth_info_1='myusername', password='mypassword')
client.save_cookies('cookies.json')
client.load_cookies(path='cookies.json')
tweets = await client.search_tweet('query search', 'Top', 1000, 'my_access_token')

Here's my access token:

Image

@dannychirkov
Copy link

dannychirkov commented Apr 1, 2025

totp_secret (str, default=None) – The TOTP (Time-Based One-Time Password) secret key used for two-factor authentication (2FA).

@dhanyg
Copy link
Author

dhanyg commented Apr 8, 2025

totp_secret (str, default=None) – The TOTP (Time-Based One-Time Password) secret key used for two-factor authentication (2FA).

so the cursor parameter is not relevant anymore?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@dhanyg @dannychirkov and others