Skip to content
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

Version 1.1.7 Randomized user-agent #7

Closed
d60 opened this issue Feb 5, 2024 · 2 comments
Closed

Version 1.1.7 Randomized user-agent #7

d60 opened this issue Feb 5, 2024 · 2 comments
Labels

Comments

@d60
Copy link
Owner

d60 commented Feb 5, 2024

User agent is now randomly generated at client initialization.
If this implementation causes any bugs, please let me know in issues.

@d60 d60 added the update label Feb 5, 2024
@kevinkinnett
Copy link

I keep getting alerts "New login to X from on "

Is that expected?

@d60
Copy link
Owner Author

d60 commented Feb 7, 2024

@kevinkinnett

Yes, it's normal for an alert to be displayed whenever the login method is called and login is performed.
However, if you're logging in frequently, Twitter may perceive this as suspicious behavior and may suspend your account.
To avoid this, you need to reuse login information by saving and loading cookies.

# save the cookies
client.save_cookies('cookies.json')

# load the cookies
client.load_cookies('cookies.json')

@d60 d60 closed this as completed Feb 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants