Code Monkey home page Code Monkey logo

bulk-tweets-destroyer's Introduction

Bulk Tweets Destroyer

Environment

Getting the code

$ git clone git://github.com/ZulwiyozaPutra/bulk-tweets-destroyer.git
$ cd bulk-tweets-destroyer

Install dependecy

$ pip install -Ur requirements.txt

Usage

1. Download Your Twitter Data

Download your Twitter Data https://twitter.com/settings/your_twitter_data. It usually takes few minutes until your twitter data is ready to download depending on how many data you have in twitter.

2. Prepare Data as JSON file in The Directory

Unarchive your twitter data and move the data/tweet.js file containing all tweet to the directory. Format the file as JSON file by removing window.YTD.tweet.part0 = in the first line and save the file as data.json.

3. Set Up Twitter Developer Account

Create your own app in twitter https://developer.twitter.com/en/apps/create and get all the keys below:

  • Consumer key
  • Consumer secret key
  • Access token key
  • Access token secret key

4. Run The Script

$ python destroyer.py -d [CUT_OFF_DATE] -k [CONSUMER_API_KEY] -s [CONSUMER_API_KEY_SECRET] --token-key [ACCESS_TOKEN_KEY] --token-secret [ACCESS_TOKEN_SECRET]

Arguments

  -d DATE, --date DATE          Cut-off Date: Delete tweets until this date with format 2020-04-14
  -k KEY, --key KEY             Consumer API key
  -s SECRET, --secret SECRET    Consumer API secret key
  --token-key TOKEN_KEY         Access token key
  --token-secret TOKEN_SECRET   Access token secret

bulk-tweets-destroyer's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.