delete-old-tweets | nodejs script to delete old tweets
kandi X-RAY | delete-old-tweets Summary
kandi X-RAY | delete-old-tweets Summary
nodejs script to delete old tweets
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of delete-old-tweets
delete-old-tweets Key Features
delete-old-tweets Examples and Code Snippets
Community Discussions
Trending Discussions on delete-old-tweets
QUESTION
I've tried to make a python script that can delete / undo favorite all my twitter favorites for me. I have seen MATHEW INKSON's post to do the job. I don't need to delete my tweets, just want to clear the favorites. Besides that script is almost two years old and incompatible with latest python. So I've edited a little to run it with python 3.6.0 and my script look like this:
...ANSWER
Answered 2017-Mar-05 at 10:17As per Twitter response codes, Code 429 is Returned in when a request cannot be served due to the application’s rate limit having been exhausted for the resource. Which means your app has made too many requests and you have to look into API Rate limits.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install delete-old-tweets
Request your twitter data from Twitter (link). You will receive an email in your email with a download link to your data, this may take a some time especially if you have a lot of twitter data. You need a valid Twitter developer credentials in the form of a set of consumer and access tokens/keys (link). You will also need to grant write permission to your application. Extract your twitter data and copy data/tweet.js into the scripts working directory. Copy the sample .env file cp .env.sample .env. Edit the .env file and replace the placeholders with your twitter app tokens/keys obtained earlier. Execute the script (below will delete 100 tweets before 2011-01-01). IDs of deleted tweets will be written to deleted.js. Rerun the script to continue the next batch of tweets. To see all of the scripts options, please run node index.js -h.
Request your twitter data from Twitter (link). You will receive an email in your email with a download link to your data, this may take a some time especially if you have a lot of twitter data.
You need a valid Twitter developer credentials in the form of a set of consumer and access tokens/keys (link). You will also need to grant write permission to your application.
Extract your twitter data and copy data/tweet.js into the scripts working directory
Copy the sample .env file cp .env.sample .env
Edit the .env file and replace the placeholders with your twitter app tokens/keys obtained earlier TWITTER_CONSUMER_KEY=**your key** TWITTER_CONSUMER_SECRET=**your secret** TWITTER_ACCESS_TOKEN_KEY=**your token key** TWITTER_ACCESS_TOKEN_SECRET=**your token secret**
Execute the script (below will delete 100 tweets before 2011-01-01) node index.js -d 2011-01-01 -d - cutoff date in yyyy-mm-dd format -n - number of tweets to delete (optional, default to 100)
IDs of deleted tweets will be written to deleted.js
Rerun the script to continue the next batch of tweets
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page