All Projects → karan → Fleets

karan / Fleets

Licence: apache-2.0
Automatically delete tweets, retweets, and favorites.

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Fleets

Tweepy
Twitter for Python!
Stars: ✭ 8,293 (+10957.33%)
Mutual labels:  twitter-api
Go Todo
微信小程序 todo后端,采用GoFrame框架搭建,包含微信认证、token管理、发送微信模板消息等
Stars: ✭ 60 (-20%)
Mutual labels:  cron
21 Recipes
📕 An R/rtweet edition of Matthew A. Russell's Python Twitter Recipes Book
Stars: ✭ 69 (-8%)
Mutual labels:  twitter-api
Crontab
⏰ Cron expression generator
Stars: ✭ 44 (-41.33%)
Mutual labels:  cron
Twitter.jl
Julia package to access Twitter API
Stars: ✭ 58 (-22.67%)
Mutual labels:  twitter-api
Likelo
Twitter auto like bot, Under Development👷, Pre Alpha
Stars: ✭ 64 (-14.67%)
Mutual labels:  twitter-api
Rtweet Workshop
Slides and code for the rtweet workshop
Stars: ✭ 41 (-45.33%)
Mutual labels:  twitter-api
Phalcon Cron
Cron component for Phalcon.
Stars: ✭ 73 (-2.67%)
Mutual labels:  cron
Go Crond
⏰ Cron daemon written in golang (for eg. usage in docker images)
Stars: ✭ 59 (-21.33%)
Mutual labels:  cron
Ppgo job
PPGo_Job是一款可视化的、多人多权限的、一任务多机执行的定时任务管理系统,采用golang开发,安装方便,资源消耗少,支持大并发,可同时管理多台服务器上的定时任务。
Stars: ✭ 1,152 (+1436%)
Mutual labels:  cron
Vue Cron Generator
Cron Generator Implemented by Vue.js and Element-ui(基于Vue&Element-UI构建的在线Cron表达式生成器)
Stars: ✭ 48 (-36%)
Mutual labels:  cron
Cronmon
PHP Web app to monitor cron/scheduled tasks
Stars: ✭ 55 (-26.67%)
Mutual labels:  cron
F3 Cron
Job scheduling for the PHP Fat-Free Framework
Stars: ✭ 65 (-13.33%)
Mutual labels:  cron
Talon For Twitter Android
The most powerful and beautiful Twitter client available.
Stars: ✭ 1,022 (+1262.67%)
Mutual labels:  twitter-api
Wp Missed Schedule
Find only missed schedule posts, every 15 minutes, and republish correctly 10 items each session. The Original plugin (only this) no longer available on WordPress.org for explicit author request! Compatible with WP 2.1+ to 4.9+ and 5.0-beta3 (100.000+ installs 300.000+ downloads 2016-04-13) Please: do not install unauthorized malware cloned forked!
Stars: ✭ 69 (-8%)
Mutual labels:  cron
Pg cron
Run periodic jobs in PostgreSQL
Stars: ✭ 1,002 (+1236%)
Mutual labels:  cron
Crontab
Parse Cron Expressions, Compose Cron Expression Strings and Caluclate Execution Dates.
Stars: ✭ 62 (-17.33%)
Mutual labels:  cron
Cronos Bundle
Easy update your crontab by using @cron annotations in Symfony commands.
Stars: ✭ 73 (-2.67%)
Mutual labels:  cron
Botwiki.org
Tutorials, articles, datasets and other resources for creating useful, interesting, artistic and friendly online bots.
Stars: ✭ 72 (-4%)
Mutual labels:  twitter-api
Autohook
Automatically setup and serve webhooks for the Twitter Account Activity API
Stars: ✭ 67 (-10.67%)
Mutual labels:  twitter-api

fleets

Nothing is forever. Except the Internet.

Automatically delete tweets, retweets, and favorites.

Heavily based on https://github.com/victoriadrake/ephemeral.

How it works

Depending on the schedule you set, this bot will:

  • Read config file
  • Get your timeline
  • Delete all tweets older than MAX_TWEET_AGE
  • Unfavorite tweets older than MAX_TWEET_AGE
  • (Optional) Ping healthcheck URLs

You can set DRY_RUN=true to print all actions it will take instead of actually deleting tweets.

The tool does not take into account Twitter rate limits, but it does sleep for a few seconds between each Twitter API call.

Setup

Copy and create a prod.env from template.env. Look at comments for values (then delete the comments).

Build and Run

Run

Set ENV_FILE_PATH to the file that contains the env vars.

$ ENV_FILE_PATH=sandbox.env go run main.go

Build

Set ENV_FILE_PATH to the file that contains the env vars. Set GOOS to your target platform.

$ GOOS=linux go build -ldflags="-d -s -w" -o fleets main.go && chmod +x fleets
$ ENV_FILE_PATH=sandbox.env ./fleets

Cron

You can use cron to run the script. Example to run it every day at 4pm:

DATEVAR=date +%Y-%m-%d
0 16 * * * ENV_FILE_PATH=/home/prod.env /home/fleets >> /home/cron-$($DATEVAR).log 2>&1
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].