Giter VIP home page Giter VIP logo

twurge's Introduction

twurge

Tweet purger for personal timelines. Twurge uses the Twitter V2 API. The required endpoints make at least a "Basic" Subscription mandatory. Further note that tweets can only be deleted one-by-one and that the API endpoints used are heavily rate-limited. Therefore, twurge caches the user ID and tweet IDs to be deleted in local files, in order to reduce request count.

credentials

% tree .credential
.credential
├── twurge-acc-key
├── twurge-acc-secret
├── twurge-api-key
└── twurge-api-secret

1 directory, 4 files

automation

#!/bin/bash

# This script is executed by a crontab every 5 minutes in order to automatically
# delete old tweets from a twitter user's timeline.
#
#     https://github.com/xh3b4sd/twurge
#

export GOTWI_ACCESS_TOKEN=$(        cat ~/.credential/twurge-acc-key    )
export GOTWI_ACCESS_TOKEN_SECRET=$( cat ~/.credential/twurge-acc-secret )
export GOTWI_API_KEY=$(             cat ~/.credential/twurge-api-key    )
export GOTWI_API_KEY_SECRET=$(      cat ~/.credential/twurge-api-secret )

/Users/xh3b4sd/project/xh3b4sd/twurge/twurge
export VISUAL=vim
crontab -e
$ crontab -l
*/5 * * * * /Users/xh3b4sd/.script/twurge.sh

twurge's People

Contributors

xh3b4sd avatar dependabot[bot] avatar

Watchers

 avatar  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.