Skip to content

RIckyBan/tweet-cleaner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tweet-cleaner

Script to delete tweets with Golang

Prerequisites

  1. Setup twitter api secrets

    First, publish your credentials from twitter developer potal. Add your twitter api keys to the .env file.

    CONSUMER_KEY=
    CONSUMER_SECRET=
    ACCESS_TOKEN=
    ACCESS_SECRET=
    
  2. Prepare your archived twitter data

    Download your archived twitter data from here. Then place tweet.js file inside to the project root.

  3. Format your twitter data into json

    Run the command below.

    $ sed '1d' tweet.js | sed '1i [' > tweet.json

How to use

$ go run main.go --from 2022-01-01 --to 2022-05-01

⚠️ Please use this script at your own risk.

About

Script to delete tweets with Golang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published