Giter VIP home page Giter VIP logo

lazy-tweets's Introduction

Lazy tweets

Simple program to show/clean up inactive twitter's friendship.

asciicast

Overview

This is a simple program written in golang that allows you to find out among your twitter "friends" who is inactive for a long time. An account is consider inactive when is not twitting since 300 days but you can change this value with something further or something closer.

Prerequisites

  • Go Compiler 1.6 or greater docs
  • Git client

Installation

>> cd $GOPATH/src
>> mkdir -p github.com/uolter
>> cd github.com/uolter
>> git clone https://github.com/uolter/Lazy-tweets.git
>> cd Lazy-tweets
>> go get .
>> go build -o lazytweets

Configuration

Create a file called .env to allows the program to load loads environment variables. Edit the file and fill it with your twitter configuration keys and access tokens.

.env

export CONSUMER_KEY=<consumer key>
export CONSUMER_SECRET=<consumer secret>
export ACCESS_TOKEN=<access toke>
export ACCESS_SECRET=<access secret>

Run the program

>> # Show the help
>> ./lazytweets --help

>> # Get lazy friends
>> ./lazytweets 

>> # Get inactive friends since the last 20 days
>> ./lazytweets -inactive_after 20
>> # Unfollow lazy friends
>> ./lazytweets -unfollow
>> ./lazytweets -exclude linux,ubuntu

Options

Usage of ./lazytweets:
  -alsologtostderr
	log to standard error as well as files
  -exclude string
    List of account (comma separated to exclude)
  -inactive_after int
	Inactieve after n days. (default 300)
  -log_backtrace_at value
    	when logging hits line file:N, emit a stack trace (default :0)
  -log_dir string
	If non-empty, write log files in this directory
  -logtostderr
	log to standard error instead of files
  -stderrthreshold value
	logs at or above this threshold go to stderr
  -unfollow
	Unfollow inactive users.
  -user_count int
	Users to fetch from twitter. (default 200)
  -v value
	log level for V logs
  -vmodule value
	comma-separated list of pattern=N settings for file-filtered logging

lazy-tweets's People

Contributors

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