Code Monkey home page Code Monkey logo

twitter-cleaner's Introduction

Twitter Cleaner

特定のキーワードを含むツイートが無条件にヤバそうなので、 それらのツイートを問答無用で削除した時に殴り書きしたスクリプトです。

たぶん誰も必要としていないと思います。 (Python とかで書けばまた別でしょうが)

必要な環境

  • コマンドライン環境
  • PHP 5.6 とかそのへん
  • 解説がなくてもなんとかする心

使い方

  1. まず、Twitter web でツイート履歴を要求して ZIP ファイルをダウンロードします。

  2. zip ディレクトリの中に ZIP ファイルを置いて、展開します。
    zip/data/js/tweets ディレクトリの中にツイートが書かれたファイルが生成されているはずです。

  3. Composerをセットアップします。すでに /usr/local/bin とかに入れてあるならそれを使えばいいです。

  4. ./composer.phar install とかして依存パッケージを入れます。 /usr/local/bin とかに入っているなら composer.phar install でいいでしょう。

  5. finder.php を実行します。何を削除キーワードにするかはこのプログラムの中に書いてあります。   標準出力に削除リストが出るので、 php finder.php > found.txt などとして found.txt に書き込んでください。

  6. config.sample.phpconfig.php にコピーして、さらに中に Twitter アプリの情報を書きます。

  7. remover.php を実行します。このプログラムは found.txt を見てそれなりに消していきます。

ライセンス

Copyright (C) 2017 AIZAWA Hina

Licensed under the NYSL 0.9982. See LICENSE.md for details.

twitter-cleaner's People

Contributors

fetus-hina avatar

Stargazers

Akiya avatar

Watchers

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