Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 774 Bytes

README.md

File metadata and controls

37 lines (24 loc) · 774 Bytes

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.