Giter Club home page Giter Club logo

nico's Introduction

#Nico

twitter keyword search and image downloader

niko

##これはなに?

Twitterをキーワードで検索しヒットしたツイートに画像があったら保存するバッチです。

TwitterのStreaming APIを使用します。

##リリース記事

http://akb428.hatenablog.com/entries/2014/07/23

##事前準備

application.properties

Twitter開発者アカウント設定

Twitterの開発者アカウントを取得し

  • consumer_key
  • consumer_secret
  • access_token
  • access_token_secret

を取得し、config/application.properties に書いておいてください。 このgitをcommitしたりする人はcp private/ にコピーし編集してください。

検索キーワード設定

twitter.searchKeywordにStreamingAPIに渡す検索ワードを指定してください。

##起動方法

mode=stand_alone

デフォルト

java -jar nico.jar

設定ファイルを指定する

java -jar nico.jar private/application.properties

mode=send_task_to_worker

メッセージ・キューに画像URLを投げるnico.jarと 画像URLを処理するworker.jarを起動する(worker.jarは複数立ち上げてもよい)

java -jar nico.jar private/application.properties
java -jar worker.jar private/application.properties

##コンパイル方法

コードは全部Javaで書かれています。

Eclipseでプロジェクト指定するかantでコンパイルしてください。(注:build.xmlはあまりメンテしていません)

##実行環境

Java8+

外部サーバー

設定ファイルで外部サーバーの使用を許可した場合はそのソフトウェアが必要になります

対応しているサーバーは以下になります。

MessageQueue Server

  • RabbitMQ

Relational Database Server

  • MariaDB

nico's People

Watchers

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