{"id":1026,"date":"2015-04-09T18:45:09","date_gmt":"2015-04-09T18:45:09","guid":{"rendered":"https:\/\/www.courses.tegabrain.com\/SS15\/?page_id=1026"},"modified":"2015-04-23T01:53:08","modified_gmt":"2015-04-23T01:53:08","slug":"twitter-bot-resources","status":"publish","type":"page","link":"https:\/\/www.courses.tegabrain.com\/SS15\/?page_id=1026","title":{"rendered":"Twitter bot resources"},"content":{"rendered":"<p>The github repository with examples of twitter bots:<br \/>\n <a href=\"https:\/\/github.com\/tegacodes\/botTutorials\"> https:\/\/github.com\/tegacodes\/botTutorials. <<<<<<<<\/a>. <\/p>\n<p>The link to <a href=\"https:\/\/github.com\/tegacodes\/botTutorials\/archive\/master.zip\">download the zip of this is here.<\/a><\/p>\n<p>1) Read through the explanation and experiment<a href=\"https:\/\/github.com\/tegacodes\/botTutorials\/tree\/master\/retweetbot\"> with running the code from retweet.bot<\/a> Get it to retweet different hash tags. <\/p>\n<p>2) Then try file bot &#8211; <a href=\"https:\/\/github.com\/tegacodes\/botTutorials\/tree\/master\/filebot\">explanation here. <\/a> This bot will tweet random lines from a an external file you pass to it. <\/p>\n<p>3) The other example in this folder is one of the node.js library examples. It is a more complex bot that randomly follows and unfollows people and tweets the most popular github tweet. Run it if you are game. <\/p>\n<p>Remember to run these bots. Unzip the files. Open your terminal and navigate to the folder with the filename.js file you wish to run (use the command cd and then drag the folder from the finder to the terminal to change folders). Then start it by typing <\/p>\n<pre lang=\"java\">node filename.js<\/pre>\n<p> For the file bot type <\/p>\n<pre lang=\"java\">node filename.js mytext.txt<\/pre>\n<p> This is explained in the description text (readme.md files). To exit, remember you hit CTRL C.<\/p>\n<h3>Some notes and resources for making bots:<\/h3>\n<p>First of all, working in public comes with responsibility. Don&#8217;t offend, make things that make the internet a better place than it was when you found it. For basic Twitter bot ethics &#8211; <a href=\"Basic Twitter bot etiquette\">please read Darius Kazemi&#8217;s guide.<\/a><\/p>\n<p><strong>Javascript twitter bots:<\/strong><\/p>\n<p>See examples of twitter bots written using node here: <a href=\"https:\/\/github.com\/tegacodes\/botTutorials\">https:\/\/github.com\/tegacodes\/botTutorials<\/a><\/p>\n<p><strong>Python twitter bots:<\/strong><\/p>\n<ul>\n<li>Basic code <a href=\"https:\/\/github.com\/risd-cs\/codedrop-twitterbot\">repository for a simple twitter bot in Python.<\/a><\/li>\n<li>Allison Parish <a href=\"https:\/\/github.com\/aparrish\/text-resources\">code repository for dealing with language in Python.<\/a><\/li>\n<\/ul>\n<p><strong>Guide to making Twitterbots without code\u00a0<\/strong><\/p>\n<p>Bot maker <a href=\"http:\/\/tullyhansen.com\/\">Tully Hansen<\/a> guides you through options for <a href=\"http:\/\/blog.tullyhansen.com\/post\/62774813528\/fake-it-til-you-make-it-a-basic-bot-primer-for\">avoiding code here.<\/a><\/p>\n<p><strong>Processing twitter library (see tutorials on this site for code examples):<\/strong><\/p>\n<ul>\n<li><a href=\"http:\/\/twitter4j.org\/en\/code-examples.html\">\u00a0http:\/\/twitter4j.org\/en\/code-examples.html<\/a><\/li>\n<\/ul>\n<p><strong>More bot readings and resources<\/strong><\/p>\n<ul>\n<li>Bot Summit, 2013 &#8211;\u00a0<a href=\"http:\/\/tinysubversions.com\/2013\/11\/bot-summit\/\">http:\/\/tinysubversions.com\/2013\/11\/bot-summit\/<\/a><\/li>\n<\/ul>\n<ul>\n<li>Bot Summit, 2014 &#8211;\u00a0<a href=\"http:\/\/tinysubversions.com\/botsummit\/2014\/\">http:\/\/tinysubversions.com\/botsummit\/2014\/<\/a><\/li>\n<\/ul>\n<ul>\n<li>Bots should punch up &#8211; <a href=\"http:\/\/www.crummy.com\/2013\/11\/27\/0\">http:\/\/www.crummy.com\/2013\/11\/27\/0<\/a><\/li>\n<li>Bots for Protest &#8211;\u00a0<a href=\"https:\/\/medium.com\/@samplereality\/a-protest-bot-is-a-bot-so-specific-you-cant-mistake-it-for-bullshit-90fe10b7fbaa\">https:\/\/medium.com\/@samplereality\/a-protest-bot-is-a-bot-so-specific-you-cant-mistake-it-for-bullshit-90fe10b7fbaa<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>The github repository with examples of twitter bots: https:\/\/github.com\/tegacodes\/botTutorials.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/www.courses.tegabrain.com\/SS15\/index.php?rest_route=\/wp\/v2\/pages\/1026"}],"collection":[{"href":"https:\/\/www.courses.tegabrain.com\/SS15\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.courses.tegabrain.com\/SS15\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.courses.tegabrain.com\/SS15\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.courses.tegabrain.com\/SS15\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1026"}],"version-history":[{"count":10,"href":"https:\/\/www.courses.tegabrain.com\/SS15\/index.php?rest_route=\/wp\/v2\/pages\/1026\/revisions"}],"predecessor-version":[{"id":1174,"href":"https:\/\/www.courses.tegabrain.com\/SS15\/index.php?rest_route=\/wp\/v2\/pages\/1026\/revisions\/1174"}],"wp:attachment":[{"href":"https:\/\/www.courses.tegabrain.com\/SS15\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1026"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}