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

tweet-deleter don't work with new API limits #133

Open
jleroy opened this issue Jul 10, 2023 · 4 comments
Open

tweet-deleter don't work with new API limits #133

jleroy opened this issue Jul 10, 2023 · 4 comments
Labels
help wanted Extra attention is needed

Comments

@jleroy
Copy link

jleroy commented Jul 10, 2023

tweet-deleter don't work with Twitter API v2 limits. I get the following message: You currently have access to a subset of Twitter API v2 endpoints and limited v1.1 endpoints (e.g. media post, oauth) only. If you need access to this endpoint, you may need a different access level. You can learn more here: https://developer.twitter.com/en/portal/product.

Can we do something to avoid this limitation or there's no way to mass delete tweets anymore?

🐦␡ starting tweet-delete                                                    ␡🐦
🔑 validating credentials                                                     🔑
Traceback (most recent call last):
  File "/Users/jleroy/.pyvenv/tweet-delete/bin/tweet-delete", line 8, in <module>
    sys.exit(cli())
  File "/Users/jleroy/.pyvenv/tweet-delete/lib/python3.9/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/Users/jleroy/.pyvenv/tweet-delete/lib/python3.9/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/Users/jleroy/.pyvenv/tweet-delete/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/jleroy/.pyvenv/tweet-delete/lib/python3.9/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/Users/jleroy/.pyvenv/tweet-delete/lib/python3.9/site-packages/tweet_delete/main.py", line 95, in cli
    creds = deleter.validate_creds()
  File "/Users/jleroy/.pyvenv/tweet-delete/lib/python3.9/site-packages/tweet_delete/deleter.py", line 47, in validate_creds
    return self.api.VerifyCredentials()
  File "/Users/jleroy/.pyvenv/tweet-delete/lib/python3.9/site-packages/twitter/api.py", line 4699, in VerifyCredentials
    resp = self._RequestUrl(url, 'GET', data)
  File "/Users/jleroy/.pyvenv/tweet-delete/lib/python3.9/site-packages/twitter/api.py", line 4962, in _RequestUrl
    limit = self.CheckRateLimit(url)
  File "/Users/jleroy/.pyvenv/tweet-delete/lib/python3.9/site-packages/twitter/api.py", line 4809, in CheckRateLimit
    self.InitializeRateLimit()
  File "/Users/jleroy/.pyvenv/tweet-delete/lib/python3.9/site-packages/twitter/api.py", line 4792, in InitializeRateLimit
    data = self._ParseAndCheckTwitter(resp.content.decode('utf-8'))
  File "/Users/jleroy/.pyvenv/tweet-delete/lib/python3.9/site-packages/twitter/api.py", line 4908, in _ParseAndCheckTwitter
    self._CheckForTwitterError(data)
  File "/Users/jleroy/.pyvenv/tweet-delete/lib/python3.9/site-packages/twitter/api.py", line 4928, in _CheckForTwitterError
    raise TwitterError(data['errors'])
twitter.error.TwitterError: [{'message': 'You currently have access to a subset of Twitter API v2 endpoints and limited v1.1 endpoints (e.g. media post, oauth) only. If you need access to this endpoint, you may need a different access level. You can learn more here: https://developer.twitter.com/en/portal/product', 'code': 453}]
@brndnmtthws brndnmtthws added the help wanted Extra attention is needed label Jul 10, 2023
@jleroy
Copy link
Author

jleroy commented Jul 13, 2023

OK so python-twitter hasn't be updated to reflect Twitter's API changes, and the project seems to be dead : bear/python-twitter#721.
Maybe I can try to move tweet-deleter to tweepy? It doesn't seems to be a lot of work.

@jleroy
Copy link
Author

jleroy commented Jul 14, 2023

Apparently the new Free tier of Twitter's API only allow to post and delete 50 tweets per day:

Capture d’écran 2023-07-14 à 16 40 23

I'm not even allowed to read my own timeline.
All we can do now is hope that Musk sells Twitter back quickly I guess... 🙄

@brndnmtthws
Copy link
Owner

RIP in peace Twitter 🐦

@kapoorsaumitra
Copy link

any updates on this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants