GithubHelp home page GithubHelp logo

guoyu07 / botsikot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yleisradio/botsikot

0.0 0.0 0.0 3.7 MB

Botsikot is a web application that creates fictional headlines applying Markov Chains and using real headlines as a source material.

Home Page: http://data.yle.fi/botsikot/

ApacheConf 0.29% CSS 2.52% PHP 81.76% JavaScript 10.95% Shell 2.02% Python 2.01% Batchfile 0.47%

botsikot's Introduction

Botsikot

Botsikot is a web application that creates fictional headlines applying Markov Chains to real headlines used as source material. Users can give "thumbs up" to headlines displayed in a list. The headlines with the most thumbs up can be tweeted automatically. Botsikot can be customized to generate other kind of content by changing the source material. Botsikot does not work out of the box as it does not include enough source material. You need to manually put the source material to botsikot/protected/data/headings and comment out line 13 in botsikot/protected/commands/GenerateCommand.php You can also implement your own way of fetching the source material from a database.

Dependencies

Installation

  • git clone https://github.com/Yleisradio/botsikot.git
  • cd botsikot/protected
  • ./deploy.sh
  • Download the latest version of Yii framework (1.x.x) from http://www.yiiframework.com/download/
  • Edit the correct location of Yii framework to botsikot/shared/config/bootstrap.php (line 6)
  • Create MySQL credentials and database
  • Configure the correct database information to botsikot/shared/config/common.php
  • ./deploy.sh
  • php5 botsikot/protected/yiic.php migrate

Usage

Generating headings

You need to customize botsikot/protected/command/GenerateCommand.php for this to work with your source material. php5 botsikot/protected/ yiic.php generate

Send Tweets

php5 botsikot/protected/ yiic.php sendTweet

Updating

  • git reset --hard
  • git pull https://github.com/Zeikko/botsikot.git
  • cd kato-ite/protected
  • ./deploy.sh

Thanks to

botsikot's People

Contributors

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