Hacker News new | ask | show | jobs
by greatdox 4400 days ago
My friend's sister debugged a Twitter bot for Python.

https://gist.github.com/ErisBlastar/6144424

The original was very buggy and did not even support Unicode and error-ed out and crashed.

Using the #ebook hashtag it favors tweets with it in it, getting a lot of indie authors to follow her account on Twitter. She can only do 100 favorings at a time due to limits, but it seems to work. She uses favorings due to the British spelling.

You have to get a Twitter API account with the keys, install the Twitter library for Python 2.7 and fill in the foo and bar etc stuff with your special API keys, and it works.

Someone else did the Python 3.X version, you can find it at Github Gists. https://gist.github.com/jmoz/6135716