Closed le-jun closed 1 year ago
Hey @le-jun! I'll update the doc to make it easier to understand how to set up the project, there's indeed some lack of proper instructions here.
So to summarize:
.env
file will be enough..env
file here.Feel free to ping me if it's still not clear enough, your experience will help me write better documentation once your struggle is resolved.
Ok so:
As I didn’t mention it in the first place, a big thanks to you for putting up this solution and providing support!
Edit: One day later, the actions ran again "successfully" but my tweet count still hasn’t changed. Something looks wrong.
Regarding your tweet deletions, I went to look at your fork, and there is an error regarding your credentials (see screenshot below). Twitter has seen many changes during the past few weeks, so maybe something is broken. I'll try to create an app from scratch to see what things have changed to update the readme accordingly.
In the meantime, you can have a look at https://tweetdelete.net/. I used this service last year to delete everything on my profile and then created this script to delete my tweets/like daily. So be advised, I never tested it on an account with more than a dozen tweets 😄 I have another account with 2.5k tweets that I intend to clean in the coming days, so it will help me debug any problem.
I'm working on the documentation, but the developer portal only allows you to create three apps per day (even if you delete them), so it's gonna take a few days because I'm adding/deleting them to check everything is working as expected 😄
Also, I pushed a potential fix to the above error, but I'll need to continue testing & improving a few things in the coming days.
Well I had a third account waiting for my tests, so here is a new documentation for the Twitter credentials https://github.com/adriantombu/twitter-cleaning/blob/main/TWITTER-CRENDENTIALS.md
And rate limits are now better handled: instead of crashing and waiting the next day run, we now just wait until the limits as been reset to continue deleting the tweets and likes.
I hope it helps, feel free to comment to let me know if it resolved your problem!
Yay, seems to work according to the run logs. The issue was probably that I had the Essential dev plan and needed Elevated access as stated (which is a hassle to apply to even if it’s quite simple). Given my looong tweet history it’ll probably take a while before being totally clean though.
Well, with the updated code from yesterday, I just ran the script locally and deleted 2.5k tweets in about 10 minutes without hitting any rate limit, which is strange (it should be 50 tweet deletions per 15 minutes if I refer to the Twitter documentation).
Likes have the 50 deletion / 15 minutes, though, so it will take longer.
I'll close this issue as the problem is resolved now. Thanks for your feedback and enjoy the holidays 🎅🏽
Not sure to understand where to put my credentials. Could you further explain?
I went the way I understood and created a repository secret using the bi~iig green button, named it "Parameters" and copy-pasted the
.env.example
file filling in my credentials. Is it the right way to do or: