Mayur57 / twitter-nuke

Tool to delete all user tweets using Twitter Archive.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ERROR: ---Read-only application cannot POST.

ryanhmcl opened this issue · comments

Getting the following error when I run the script. I think everything else is setup correctly.

I'm using Terminal on macOS Big Sur.

Any ideas?

Last login: Sat Feb 12 13:30:54 on ttys000
Ryan@RHM-MBP ~ % cd /Users/Ryan/Downloads/twitter                       
Ryan@RHM-MBP twitter % sudo python3 /Users/Ryan/Downloads/twitter/delete-script.py 
Password:


>> Processing your tweet.js file and converting it to a JSON.

>> Processing tweet.js file

>> Converting to processable JSON

>> You have selected 18593 tweets to be deleted.
>> You have selected 6 tweets to be deleted.

>> Your choices for filters were: 
>> Likes more than 10 and retweets more than 10.


    
    >> Deletion of tweets takes a long time due to the sluggish Twitter API. The script uses multithreading to delete threads faster. However, it might still take a few minutes to delete your entire history of tweets if it exceeds a couple of thousand tweets.
Thread started for deletion. Thread #1
Thread started for deletion. Thread #2
Thread started for deletion. Thread #3
Thread started for deletion. Thread #4
Thread started for deletion. Thread #5
Thread started for deletion. Thread #6
Thread started for deletion. Thread #7
Thread started for deletion. Thread #8
Thread started for deletion. Thread #9
Thread started for deletion. Thread #10
Thread started for deletion. Thread #11
Thread started for deletion. Thread #12
Thread started for deletion. Thread #13
Thread started for deletion. Thread #14
Thread started for deletion. Thread #15
Thread started for deletion. Thread #16
Thread started for deletion. Thread #17
Thread started for deletion. Thread #18
Thread started for deletion. Thread #19
Thread started for deletion. Thread #20
Thread started for deletion. Thread #21
Thread started for deletion. Thread #22
Thread started for deletion. Thread #23
Thread started for deletion. Thread #24
Thread started for deletion. Thread #25
Thread started for deletion. Thread #26
Thread started for deletion. Thread #27
Thread started for deletion. Thread #28
Thread started for deletion. Thread #29
Thread started for deletion. Thread #30
Thread started for deletion. Thread #31
Thread started for deletion. Thread #32
Thread started for deletion. Thread #33
Thread started for deletion. Thread #34
Thread started for deletion. Thread #35
Thread started for deletion. Thread #36
Thread started for deletion. Thread #37
ERROR: ---Read-only application cannot POST.189286287126175744
ERROR: ---Read-only application cannot POST.219738329720172544
ERROR: ---Read-only application cannot POST.231700154238001154
ERROR: ---Read-only application cannot POST.248052328849080320
ERROR: ---Read-only application cannot POST.1797644428
ERROR: ---Read-only application cannot POST.212547389041545216
ERROR: ---Read-only application cannot POST.271955996660883456
ERROR: ---Read-only application cannot POST.205792151760678912
Thread started for deletion. Thread #38
--> Successfully deleted 18593 tweets.
--> Successfully skipped 6 tweets from deletion.
--> Number of threads used: 93 of batch size 500 each.


--> Process finished in 7.888478755950928 seconds.
ERROR: ---Read-only application cannot POST.200232491506872321
ERROR: ---Read-only application cannot POST.256898477236310016
ERROR: ---Read-only application cannot POST.194730566065725441
ERROR: ---Read-only application cannot POST.296991465777807360
ERROR: ---Read-only application cannot POST.264385288074297344
ERROR: ---Read-only application cannot POST.154149420810764288
ERROR: ---Read-only application cannot POST.288272285431906305
ERROR: ---Read-only application cannot POST.347043531858272258
ERROR: ---Read-only application cannot POST.486858789987958784
ERROR: ---Read-only application cannot POST.162172524547940353
ERROR: ---Read-only application cannot POST.841024024486510593
ERROR: ---Read-only application cannot POST.370493537529241600

While generating the API keys from Twitter Developer Dashboard, make sure that your Twitter app has the permissions set as Read and Write. Your app should show a message regarding your permissions as shown below. Your API keys seem to be generated in the default state, which is: Read Only.

Screenshot 2022-02-13 at 12 52 35 AM

You can refer to this blog of mine to read about Twitter app permissions and detailed steps to generate an API key set correctly.

thanks, worked a treat.