Giter Club home page Giter Club logo

killpopstars's Introduction

KillPopStars

A handy script to block the author of a tweet and everyone who retweets or likes that tweet.

I created this script because my Twitter handle (@niel) is constantly being mistaken for someone else. (If you must know, French businessman Xavier Niel, the town of Niel in Belgium, Filipino pop star Niel Murillo, and K-Pop boy band star Ahn Daniel. The last two are the most annoying as they don't have verified Twitter accounts and seem to have millions of fans who like to retweet each other.) So when I get a tweet intended for one of these people, I just want it to go away as quickly and efficiently as possible.

I wrote this script to block these users for my own purpose, but it could also easily be used to mute them or report spammers if, for example, you are being harassed on Twitter.

Usage

KillPopStars.py <tweet_id> <action>

tweet_id is the Twitter ID of the tweet to start with

action is the action to take: block (default), mute, or report

Requires a file called 'config' that has authorization parameters, which will be read from the local directory, a .KillPopStars directory in the user's home directory, or the /etc/KillPopStars/ directory. The file should have this format:

consumer_key        <your_consumer_key>
consumer_secret     <your_consumer_secret>
access_token_key    <your_access_token_key>
access_token_secret <your_access_token_secret>

Get your own keys at https://apps.twitter.com/.

killpopstars's People

Contributors

nbornstein avatar

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.