Skip to content

JaredTRand/CSC-450--TWITTER-BOT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TWITTER BOT

Because I wasn't allowed to have the twitter API

To run the program, just run brain.py :)

You may have to change some things around in the bin folder and accountdata.json for it to work the way you want. You can change the name to be anything you want, but the name has to be the same as the folder, otherwise it will probably break.

As of right now, change the code at the bottom of brain.py to do what you want. For example,

bot1 = TwitterBot(user=0)  <-- This creates a new bot from the first portion of accountdata.json in bin
bot1.follow()   <-- This part will follow users, just be sure the twitter page is open when you start
bot1.unfollow()   <-- This makes a list of everyone who follows it and unfollows users that don't follow the bot back
bot2 = TwitterBot(user=1)   <-- This is assuming there's another portion in the accountdata.json
swap_user(bot2)   <-- This will log out bot1 and log in bot2, just make sure the credentials are in accountdata.json

There's also a small bug where something adds extra brackets to accountdata.json, so just delete them if it does that. I'll try to fix that up soon

I also made this on a computer with a 1920x1080 resolution monitor, so it's possible that the amount of pixels the mouse moves may be different on your system. I also took the screenshots using twitter's dim theme with purple coloring (the one with the octopus).

For reference, here is how the bot is supposed to work:

The above gif is the bot following users.

The above gif is the bot unfollowing users who dont follow the bot back.

Eventually I'll see if I can get the bot to tweet funny things on its own. Maybe I'll have it hold a long list of tweets that I want it to send out every day or so, something like that.

About

An unnecessary solution to a weird problem

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages