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

a simple code results in error "twikit.errors.Forbidden: status: 403" #258

Open
jjqtony opened this issue Nov 22, 2024 · 2 comments
Open

Comments

@jjqtony
Copy link

jjqtony commented Nov 22, 2024

code as followed:

import asyncio
from twikit import Client

client = Client('en-US')

async def main():
tweets = await client.search_tweet('python', 'Latest')
for tweet in tweets:
print(tweet.user.name, tweet.text, tweet.created_at)

asyncio.run(main())

finally get error: "raise Forbidden(message, headers=response.headers)
twikit.errors.Forbidden: status: 403, message: "" "

@TA2018b
Copy link

TA2018b commented Nov 25, 2024

I faced same issue.
Simple client.search_tweet() request resulted in following error: Forbidden: status: 403, message: ""
Change in X's security measure?

@iamth25
Copy link

iamth25 commented Jan 15, 2025

I have the same issue. I checked my X Account, and it seems that my account gets blocked right away by X once I try to run Twikit (I also only setup a tweet count of 10, but I still got busted)

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