Navigation Menu

Skip to content

josecv/hashkov

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#hashkov

#hashkov is a Python 3 program that tweets markov-chain generated tweets with a given #hashtag.

Note that this will convert #hashtag to #_hashtag. This is because Twitter's ToS forbid tweeting to trending topics via a robot, and I'm not keen on getting banned.

Usage

You do need to register a Twitter app for this to work. Once that's done, you can invoke it as:

./hashkov_tweet.py -t <HASHTAG> -a <APP_KEY> -c <APP_SECRET>

It will give you a url so that you can request a pin for hashkov to get an access token, then print out said token. Once you do have the token, future invocations can be done as:

./hashkov_tweet.py -t <HASHTAG> -a <APP_KEY> -c <APP_SECRET> -k <ACCESS_KEY> -s <ACCESS_SECRET>

Hashkov also supports autonomous mode. If you pass in -d instead of -t <HASHTAG> it will randomly tweet to a trending hashtag (with the _ prefix so as to not violate the ToS).

About

Tweets markov-chain generated tweets with a given #hashtag

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages