Code Monkey home page Code Monkey logo

fen4i4's Introduction

Fen4i4 - A simple twitter bot.

Fen4i4 is a twitter bot that tweet and retweet interesting facts (and follow interesting accounts). I want to make the bot trainable on any computer (for example a i5 2xxx and 4Gb of RAM are enough to train this bot in one night).

Fen4i4

Why Fen4i4?

I just do this project for fun.

Run your instance

I will release my classifier later. But, to run this twitter bot, you will need:

  • Tweepy and Python 3 on your computer
  • (optional) A server to host the bot

Configure the bot

You need to configure the bot with your own parameters in config.json. (You can get a key for twitter here and for discord here). Also, you must have a classifier in rsc.

Architecture

  • img/ just contains some image for http://twitter.com/fen4i4/

  • rsc/ will contains

    • classifier.pickle: the classifier
    • some files (follow, nfollow, lastid, neg and pos)
  • train/ will contains useful files for training the bot.

    • classifier.pickle if you run train
    • datas/neg and datas/pos to classify tweets.

Run the bot!

python3 f3n414.py config_true.json

                                  ,--,               ,--,
                                ,--.'|             ,--.'|
.--.,                          ,--,  | :  ,--,    ,--,  | :
,--.'  \                ,---, ,---.'|  : ',--.'| ,---.'|  : '
|  | /\/            ,-+-. /  |;   : |  | ;|  |,  ;   : |  | ;
:  : :     ,---.   ,--.'|'   ||   | : _' |`--'_  |   | : _' |
:  | |-,  /     \ |   |  ,"' |:   : |.'  |,' ,'| :   : |.'  |
|  : :/| /    /  ||   | /  | ||   ' '  ; :'  | | |   ' '  ; :
|  |  .'.    ' / ||   | |  | |\   \  .'. ||  | : \   \  .'. |
'  : '  '   ;   /||   | |  |/  `---`:  | ''  : |__`---`:  | '
|  | |  '   |  / ||   | |--'        '  ; ||  | '.'|    '  ; |
|  : \  |   :    ||   |/            |  : ;;  :    ;    |  : ;
|  |,'   \   \  / '---'             '  ,/ |  ,   /     '  ,/
`--'      `----'                    '--'   ---`-'      '--'
-===========================================================-
                    A Simple Twitter B0t
-===========================================================-

Init the bot...
Load classifier...
classifier loaded
Bot Ready!
H3ll0, f3n4i4
> help
Available commands:
- quit/exit: quit the app
- follow (<user>|followers): try yo follow an user or the followers of the bot
- test (<user>|followers): get interesting tweets from user or the followers
- reaction <tweet>: generate a reaction tweet
- classify: classify and retweet some tweets
- force follow <user>: follow an user
- force unfollow <user>: unfollow an user
- force unrt <id>: unretweet a tweet
- followers: get followers
- following: get following account
- mention: get mentions
- go/run: run the bot in automated mode.
- train: train a classifier
>

License

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
        Version 2, December 2004

Copyright (C) 2016 Sébastien (AmarOk) Blin <https://enconn.fr>

Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

0\. You just DO WHAT THE FUCK YOU WANT TO.

Contribute

Please, feel free to contribute to this project in submitting patches, corrections, opening issues, etc.

fen4i4's People

Contributors

amarok1412 avatar

Watchers

 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.