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

Twitter Notifcations not working #63

Open
morenone opened this issue Feb 22, 2024 · 1 comment
Open

Twitter Notifcations not working #63

morenone opened this issue Feb 22, 2024 · 1 comment

Comments

@morenone
Copy link

python camping.py --start-date 2024-07-19 --end-date 2024-07-21 --parks 233911 | python notifier.py @my_twitter_handle

Here's my output from the above command:

Traceback (most recent call last):
File "/mnt/raid/git/recreation-gov-campsite-checker/notifier.py", line 102, in
main(sys.argv, sys.stdin)
File "/mnt/raid/git/recreation-gov-campsite-checker/notifier.py", line 69, in main
_create_tweet(tweet, tc)
File "/mnt/raid/git/recreation-gov-campsite-checker/notifier.py", line 27, in _create_tweet
resp = api.PostUpdate(tweet)
File "/mnt/raid/git/recreation-gov-campsite-checker/myvenv/lib/python3.10/site-packages/twitter/api.py", line 1177, in PostUpdate
data = self._ParseAndCheckTwitter(resp.content.decode('utf-8'))
File "/mnt/raid/git/recreation-gov-campsite-checker/myvenv/lib/python3.10/site-packages/twitter/api.py", line 4908, in _ParseAndCheckTwitter
self._CheckForTwitterError(data)
File "/mnt/raid/git/recreation-gov-campsite-checker/myvenv/lib/python3.10/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}]
(myvenv) root@shawn-UCSC-C220-M5SX:/mnt/raid/git/recreation-gov-campsite-checker#

@banool
Copy link
Owner

banool commented Oct 27, 2024

Hey there, open to PRs to fix this if this is a code issue, though judging by the error perhaps the key doesn't have appropriate permissions.

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

2 participants