{"id":980,"date":"2014-06-06T09:37:28","date_gmt":"2014-06-06T09:37:28","guid":{"rendered":"http:\/\/www.silkstream.net\/blog\/?p=980"},"modified":"2014-09-05T14:57:03","modified_gmt":"2014-09-05T14:57:03","slug":"how-to-get-going-with-twython","status":"publish","type":"post","link":"https:\/\/www.silkstream.net\/blog\/2014\/06\/how-to-get-going-with-twython.html","title":{"rendered":"Noob&#8217;s Guide #1: How To Get Going with Twython"},"content":{"rendered":"<h2><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-988\" alt=\"Noob Guide to Twython\" src=\"https:\/\/www.silkstream.net\/blog\/wp-content\/uploads\/2014\/06\/noob-guide-twython-1.jpg\" width=\"556\" height=\"300\" \/><\/h2>\n<h2>Why would you want to code your own Twitter Bot?<\/h2>\n<p style=\"text-align: justify;\">There are so many websites that offer free Twitter bot services, with options to retweet a certain hashtag or mine certain Twitter data. Unfortunately, these ready made bots don&#8217;t typically allow for a lot of freedom or control. How many times have you seen a Twitter ReTweet Bot that tweets everything containing its designated #hashtag, including all of the distasteful Tweets that contain offensive language? Or bots ReTweeting completely irrelevant Tweets, though it contains the #hashtag, that really don&#8217;t need to be ReTweeted? These bots aren&#8217;t particularly designed well and can come across rather spammy. By programming a Twitter bot of your own, you can filter out the kinds of Tweets you don&#8217;t want, allowing you to Tweet, ReTweet and mine only the relevant Twitter data that you need. There are so many awesome marketing uses for a Twitter bot, and it all starts with learning what it is and how it works.<\/p>\n<h2 style=\"text-align: justify;\">What is Twython?<\/h2>\n<p style=\"text-align: justify;\">To create a Twitter bot, you will need to create an app to connect with Twitter&#8217;s API. API stands for &#8220;Application Programming Interface&#8221;. The Twitter API is a designed way for external programs to interact with Twitter. It&#8217;s kind of like Twitter giving two people a tin can each attached by a long bit of string (but hopefully more effective). It gives both parties a way to communicate with each other &#8211; one party being us and the other of course being Twitter.<\/p>\n<p style=\"text-align: justify;\">Twython is a pure Python wrapper for the Twitter API which means that you will have to <a title=\"Python download\" href=\"https:\/\/www.python.org\/downloads\/\" target=\"_blank\">download and install Python<\/a> to get this thing running. This tutorial is going to assume that you&#8217;ve already installed Python and are familiar enough with it to at least be able to save and run programs.<\/p>\n<p style=\"text-align: justify;\">There are a couple of other well known wrappers that do the same job, such as Tweepy or Python-Twitter, but it seems that Tweepy has long been abandoned by its owner and formed some kind of merge with Twython. Twython is currently accepted generally to be the best, as it is actively maintained and includes functions for everything you&#8217;re going to need. There&#8217;s decent community support as well with Twython which is great!<\/p>\n<p style=\"text-align: justify;\">A working knowledge of the Python programming language is obviously recommended to do anything particularly original, but to be honest there&#8217;s so much support for Twython that just to make a simple Twitter bot, all you&#8217;ll really need is the <a title=\"Twython documentation\" href=\"http:\/\/twython.readthedocs.org\/\" target=\"_blank\">Twython documentation<\/a>, Google and a little bit of patience. And hopefully a splash of creativity.<\/p>\n<h2>Installing Twython<\/h2>\n<p style=\"text-align: justify;\">You can download the Twython library\u00a0on GitHub <a title=\"Twython\" href=\"https:\/\/github.com\/ryanmcgrath\/twython\" target=\"_blank\">here<\/a><span style=\"text-decoration: underline;\">.<\/span>\u00a0You will need to install the Twython packages\u00a0too,\u00a0but you can do this via pip or easy_install. Python should already have easy_install built in, in which case try:<\/p>\n<div style=\"border: dashed #f79239; padding: 8px;\">\n<pre style=\"color: #000000;\">$ easy_install twython<\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p>or for pip:<\/p>\n<div style=\"border: dashed #f79239; padding: 8px;\">\n<pre style=\"color: #000000;\">$ pip install twython<\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<h2>Twitter OAuth<\/h2>\n<p style=\"text-align: justify;\">I&#8217;m not sure why but authenticating seemed to be the biggest initial challenge for me. I had to regenerate my API keys and access tokens three times before they eventually got working. I think maybe my own impatience was to blame there though, as when I changed the API permissions it may have taken a little extra time after regenerating my keys maybe?<\/p>\n<p style=\"text-align: justify;\">It seems that a lot of the tutorials or blog posts that I read online about authenticating access to the Twitter API are outdated, and written back when you only needed to enter your Twitter username and password to gain access to the API. You will need OAuth now, as it has been for a while.<\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-984\" alt=\"Twitter Apps\" src=\"https:\/\/www.silkstream.net\/blog\/wp-content\/uploads\/2014\/06\/twitter-apps.jpg\" width=\"597\" height=\"114\" \/><\/p>\n<p style=\"text-align: justify;\">On your Twitter homepage, you should see the\u00a0footer items as pictured above. You can either navigate from Twitter&#8217;s Developers pages on the off-chance you bump into anything\u00a0that interests you\u00a0along the way. Or&#8230; you could just go straight to\u00a0<a title=\"Twitter Apps\" href=\"https:\/\/apps.twitter.com\" target=\"_blank\">apps.twitter.com<\/a>\u00a0and hit that Create New App button!<\/p>\n<p style=\"text-align: center;\"><em>If you&#8217;re still navigating via the Twitter Developers Page, you&#8217;ll get there eventually. I&#8217;ll wait for you.<\/em><\/p>\n<p style=\"text-align: justify;\">The Application Form is pretty straight-forward. Twitter holds your hand through it enough, without me holding your other hand through it too. <em>(Because then how would you type?!)<\/em><\/p>\n<h2 style=\"text-align: justify;\">Yes, you agree! Create your Twitter application!<\/h2>\n<p style=\"text-align: justify;\">First thing you&#8217;re going to want to do is modify your app permissions so that you are able to Read, Write and Access direct messages. This will allow your Twitter bot to actually be fully functional.<\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-985\" alt=\"Twitter app permissions\" src=\"https:\/\/www.silkstream.net\/blog\/wp-content\/uploads\/2014\/06\/twitter-app-permission.png\" width=\"341\" height=\"165\" \/><\/p>\n<p>On the API Keys tab you should see the:<\/p>\n<ul>\n<li>API key &#8211;\u00a0<em>This is your key to get in.<\/em><\/li>\n<li>API secret &#8211;\u00a0<em>This code right here has to be kept\u00a0<strong>secret<\/strong>.\u00a0<\/em><\/li>\n<li>Access level &#8211;\u00a0<em>This should now read &#8220;Read, Write and Access direct messages&#8221;.<\/em><\/li>\n<li>Owner &#8211;\u00a0<em>This should say your Twitter username.<\/em><\/li>\n<li>Owner ID \u00a0&#8211;\u00a0<em>This number here is your Twitter ID. Not important to you.<\/em><\/li>\n<\/ul>\n<p>And if you scroll down a bit, you want to click &#8220;Generate my access token&#8221;! You need this to make API requests on your\u00a0Twitter account&#8221;s behalf. You should see:<\/p>\n<ul>\n<li>Access token<\/li>\n<li>Access token secret<\/li>\n<li>Access level<\/li>\n<li>Owner<\/li>\n<li>Owner ID<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">Aside from the token and token secret, the last three points should match the previous Application Settings.<\/p>\n<p style=\"text-align: justify;\">The reason that we need so many codes to get started is that, in order to be able to Tweet, ReTweet, Follow, Unfollow and all that good stuff via our Twitter bot, we need to identify ourselves securely to access Twitter&#8217;s API. The app key and secret are like our app&#8217;s unique username and password, different to our Twitter profile username and password as we can have multiple apps per user. The token and token secret are like the app&#8217;s credentials, usable only by the app, and determines the app&#8217;s level of access on behalf of the user account at the discretion of the OAuth provider. Basically, it&#8217;s a secret handshake with four moves. Twitter needs to know that you know all four moves, or you can&#8217;t be part of the Twitter API Cool Club.<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-996\" alt=\"Secret Handshake\" src=\"https:\/\/www.silkstream.net\/blog\/wp-content\/uploads\/2014\/06\/secret-handshake.gif\" width=\"320\" height=\"240\" \/><\/p>\n<p style=\"text-align: justify;\">While you&#8217;re here, if you really want, you can change your Application Icon or Organisation Details. But\u00a0you shouldn&#8217;t need it for the sort of Twitter Bot you&#8217;re probably going to want to be building.<\/p>\n<h2 style=\"text-align: justify;\">Testing Twython with a Twitter Status Update<\/h2>\n<div style=\"border: dashed #f79239; padding: 8px;\">\n<pre style=\"color: #000000;\"><span style=\"color: #ff6600;\"># Importing the module<\/span>\r\nfrom twython import Twython\r\n\r\n<span style=\"color: #ff6600;\">#Setting these as variables will make them easier for future edits<\/span>\r\napp_key = \"YOUR_APP_KEY\"\r\napp_secret = \"YOUR_APP_SECRET\"\r\noauth_token = \"YOUR_OAUTH_TOKEN\"\r\noauth_token_secret = \"YOUR_OAUTH_TOKEN_SECRET\"\r\n\r\n<span style=\"color: #ff6600;\">#Prepare your twitter, you will need it for everything<\/span>\r\ntwitter = Twython(app_key, app_secret, oauth_token, oauth_token_secret)\r\n<span style=\"color: #ff6600;\">#The above should just be a single line, without the break<\/span>\r\n\r\n<span style=\"color: #ff6600;\">#The obligatory first status update to test<\/span>\r\ntwitter.update_status(status=\"Hello world.\")<\/pre>\n<\/div>\n<p style=\"text-align: justify;\">Now try running your program and visit your Twitter profile. Has it appeared?<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-991 aligncenter\" alt=\"Twython Status Update\" src=\"https:\/\/www.silkstream.net\/blog\/wp-content\/uploads\/2014\/06\/twitter-api-oauth.jpg\" width=\"302\" height=\"88\" \/><\/p>\n<p style=\"text-align: center;\"><strong><em>&#8220;But what good is this? I could have just updated my status myself!&#8221;<\/em><\/strong><\/p>\n<p style=\"text-align: center;\"><strong>Next week I&#8217;ll\u00a0be going through what kind of magic you can actually perform with your newly acquired wizardry!<\/strong><\/p>\n<h3 style=\"text-align: center;\"><a title=\"ReTweeting with your Twython Twitter Bot\" href=\"https:\/\/www.silkstream.net\/blog\/2014\/06\/retweeting-with-your-twython-twitter-bot.html\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-full wp-image-1010\" alt=\"ReTweeting with your Twython Twitter Bot\" src=\"https:\/\/www.silkstream.net\/blog\/wp-content\/uploads\/2014\/06\/orange-arrow-right.png\" width=\"127\" height=\"120\" \/><\/a><a title=\"ReTweeting with your Twython Twitter Bot\" href=\"https:\/\/www.silkstream.net\/blog\/2014\/06\/retweeting-with-your-twython-twitter-bot.html\">The Noob&#8217;s Guide to Twython &#8211; Part 2:<\/a><\/h3>\n<p style=\"text-align: center;\"><a title=\"ReTweeting with your Twython Twitter Bot\" href=\"https:\/\/www.silkstream.net\/blog\/2014\/06\/retweeting-with-your-twython-twitter-bot.html\">ReTweeting with your Twython Twitter Bot<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\nWhy would you want to code your own Twitter Bot?<br \/>\nThere are so many websites that offer free Twitter bot services, with options to <\/p>\n","protected":false},"author":7,"featured_media":990,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,7],"tags":[],"class_list":["post-980","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-online-marketing","category-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How To Get Going With Twython - Silkstream | Web Design Blog<\/title>\n<meta name=\"description\" content=\"The Noob&#039;s Guide to Twython - Part 1: How to install Twython, Authenticating with Twitter API, and creating your bot&#039;s first Twitter status update.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silkstream.net\/blog\/2014\/06\/how-to-get-going-with-twython.html\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Get Going With Twython - Silkstream | Web Design Blog\" \/>\n<meta property=\"og:description\" content=\"The Noob&#039;s Guide to Twython - Part 1: How to install Twython, Authenticating with Twitter API, and creating your bot&#039;s first Twitter status update.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silkstream.net\/blog\/2014\/06\/how-to-get-going-with-twython.html\" \/>\n<meta property=\"og:site_name\" content=\"Silkstream\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/silkstream\" \/>\n<meta property=\"article:published_time\" content=\"2014-06-06T09:37:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2014-09-05T14:57:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.silkstream.net\/blog\/wp-content\/uploads\/2014\/06\/twython-guide-thumb-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"120\" \/>\n\t<meta property=\"og:image:height\" content=\"120\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Ria\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@RiaLolwut\" \/>\n<meta name=\"twitter:site\" content=\"@silkstreamnet\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ria\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.silkstream.net\\\/blog\\\/2014\\\/06\\\/how-to-get-going-with-twython.html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.silkstream.net\\\/blog\\\/2014\\\/06\\\/how-to-get-going-with-twython.html\"},\"author\":{\"name\":\"Ria\",\"@id\":\"https:\\\/\\\/www.silkstream.net\\\/blog\\\/#\\\/schema\\\/person\\\/1516b66b9d6da001d8052655282481b1\"},\"headline\":\"Noob&#8217;s Guide #1: How To Get Going with Twython\",\"datePublished\":\"2014-06-06T09:37:28+00:00\",\"dateModified\":\"2014-09-05T14:57:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.silkstream.net\\\/blog\\\/2014\\\/06\\\/how-to-get-going-with-twython.html\"},\"wordCount\":1103,\"commentCount\":11,\"image\":{\"@id\":\"https:\\\/\\\/www.silkstream.net\\\/blog\\\/2014\\\/06\\\/how-to-get-going-with-twython.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.silkstream.net\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/06\\\/twython-guide-thumb-1.jpg\",\"articleSection\":[\"Online Marketing\",\"Tutorials\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.silkstream.net\\\/blog\\\/2014\\\/06\\\/how-to-get-going-with-twython.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.silkstream.net\\\/blog\\\/2014\\\/06\\\/how-to-get-going-with-twython.html\",\"url\":\"https:\\\/\\\/www.silkstream.net\\\/blog\\\/2014\\\/06\\\/how-to-get-going-with-twython.html\",\"name\":\"How To Get Going With Twython - Silkstream | Web Design Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.silkstream.net\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.silkstream.net\\\/blog\\\/2014\\\/06\\\/how-to-get-going-with-twython.html#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.silkstream.net\\\/blog\\\/2014\\\/06\\\/how-to-get-going-with-twython.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.silkstream.net\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/06\\\/twython-guide-thumb-1.jpg\",\"datePublished\":\"2014-06-06T09:37:28+00:00\",\"dateModified\":\"2014-09-05T14:57:03+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.silkstream.net\\\/blog\\\/#\\\/schema\\\/person\\\/1516b66b9d6da001d8052655282481b1\"},\"description\":\"The Noob's Guide to Twython - Part 1: How to install Twython, Authenticating with Twitter API, and creating your bot's first Twitter status update.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.silkstream.net\\\/blog\\\/2014\\\/06\\\/how-to-get-going-with-twython.html#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.silkstream.net\\\/blog\\\/2014\\\/06\\\/how-to-get-going-with-twython.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/www.silkstream.net\\\/blog\\\/2014\\\/06\\\/how-to-get-going-with-twython.html#primaryimage\",\"url\":\"https:\\\/\\\/www.silkstream.net\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/06\\\/twython-guide-thumb-1.jpg\",\"contentUrl\":\"https:\\\/\\\/www.silkstream.net\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/06\\\/twython-guide-thumb-1.jpg\",\"width\":120,\"height\":120,\"caption\":\"Noob's Guide to Twython\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.silkstream.net\\\/blog\\\/2014\\\/06\\\/how-to-get-going-with-twython.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.silkstream.net\\\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Noob&#8217;s Guide #1: How To Get Going with Twython\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.silkstream.net\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.silkstream.net\\\/blog\\\/\",\"name\":\"Silkstream\",\"description\":\"Here you&#039;ll find the latest blogs, white papers and case studies from Silkstream experts.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.silkstream.net\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.silkstream.net\\\/blog\\\/#\\\/schema\\\/person\\\/1516b66b9d6da001d8052655282481b1\",\"name\":\"Ria\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/dad9acd650d88d7fd9c7e2b77f38d25ec2c921eb7efb622d785820719d8a75df?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/dad9acd650d88d7fd9c7e2b77f38d25ec2c921eb7efb622d785820719d8a75df?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/dad9acd650d88d7fd9c7e2b77f38d25ec2c921eb7efb622d785820719d8a75df?s=96&d=mm&r=g\",\"caption\":\"Ria\"},\"description\":\"SEO &amp; Internet Marketing addict, and aspiring crazy cat lady.\",\"sameAs\":[\"http:\\\/\\\/www.silkstream.net\",\"https:\\\/\\\/x.com\\\/RiaLolwut\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Get Going With Twython - Silkstream | Web Design Blog","description":"The Noob's Guide to Twython - Part 1: How to install Twython, Authenticating with Twitter API, and creating your bot's first Twitter status update.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silkstream.net\/blog\/2014\/06\/how-to-get-going-with-twython.html","og_locale":"en_GB","og_type":"article","og_title":"How To Get Going With Twython - Silkstream | Web Design Blog","og_description":"The Noob's Guide to Twython - Part 1: How to install Twython, Authenticating with Twitter API, and creating your bot's first Twitter status update.","og_url":"https:\/\/www.silkstream.net\/blog\/2014\/06\/how-to-get-going-with-twython.html","og_site_name":"Silkstream","article_publisher":"https:\/\/www.facebook.com\/silkstream","article_published_time":"2014-06-06T09:37:28+00:00","article_modified_time":"2014-09-05T14:57:03+00:00","og_image":[{"width":120,"height":120,"url":"https:\/\/www.silkstream.net\/blog\/wp-content\/uploads\/2014\/06\/twython-guide-thumb-1.jpg","type":"image\/jpeg"}],"author":"Ria","twitter_card":"summary_large_image","twitter_creator":"@RiaLolwut","twitter_site":"@silkstreamnet","twitter_misc":{"Written by":"Ria","Estimated reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.silkstream.net\/blog\/2014\/06\/how-to-get-going-with-twython.html#article","isPartOf":{"@id":"https:\/\/www.silkstream.net\/blog\/2014\/06\/how-to-get-going-with-twython.html"},"author":{"name":"Ria","@id":"https:\/\/www.silkstream.net\/blog\/#\/schema\/person\/1516b66b9d6da001d8052655282481b1"},"headline":"Noob&#8217;s Guide #1: How To Get Going with Twython","datePublished":"2014-06-06T09:37:28+00:00","dateModified":"2014-09-05T14:57:03+00:00","mainEntityOfPage":{"@id":"https:\/\/www.silkstream.net\/blog\/2014\/06\/how-to-get-going-with-twython.html"},"wordCount":1103,"commentCount":11,"image":{"@id":"https:\/\/www.silkstream.net\/blog\/2014\/06\/how-to-get-going-with-twython.html#primaryimage"},"thumbnailUrl":"https:\/\/www.silkstream.net\/blog\/wp-content\/uploads\/2014\/06\/twython-guide-thumb-1.jpg","articleSection":["Online Marketing","Tutorials"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.silkstream.net\/blog\/2014\/06\/how-to-get-going-with-twython.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.silkstream.net\/blog\/2014\/06\/how-to-get-going-with-twython.html","url":"https:\/\/www.silkstream.net\/blog\/2014\/06\/how-to-get-going-with-twython.html","name":"How To Get Going With Twython - Silkstream | Web Design Blog","isPartOf":{"@id":"https:\/\/www.silkstream.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.silkstream.net\/blog\/2014\/06\/how-to-get-going-with-twython.html#primaryimage"},"image":{"@id":"https:\/\/www.silkstream.net\/blog\/2014\/06\/how-to-get-going-with-twython.html#primaryimage"},"thumbnailUrl":"https:\/\/www.silkstream.net\/blog\/wp-content\/uploads\/2014\/06\/twython-guide-thumb-1.jpg","datePublished":"2014-06-06T09:37:28+00:00","dateModified":"2014-09-05T14:57:03+00:00","author":{"@id":"https:\/\/www.silkstream.net\/blog\/#\/schema\/person\/1516b66b9d6da001d8052655282481b1"},"description":"The Noob's Guide to Twython - Part 1: How to install Twython, Authenticating with Twitter API, and creating your bot's first Twitter status update.","breadcrumb":{"@id":"https:\/\/www.silkstream.net\/blog\/2014\/06\/how-to-get-going-with-twython.html#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silkstream.net\/blog\/2014\/06\/how-to-get-going-with-twython.html"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.silkstream.net\/blog\/2014\/06\/how-to-get-going-with-twython.html#primaryimage","url":"https:\/\/www.silkstream.net\/blog\/wp-content\/uploads\/2014\/06\/twython-guide-thumb-1.jpg","contentUrl":"https:\/\/www.silkstream.net\/blog\/wp-content\/uploads\/2014\/06\/twython-guide-thumb-1.jpg","width":120,"height":120,"caption":"Noob's Guide to Twython"},{"@type":"BreadcrumbList","@id":"https:\/\/www.silkstream.net\/blog\/2014\/06\/how-to-get-going-with-twython.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.silkstream.net\/blog"},{"@type":"ListItem","position":2,"name":"Noob&#8217;s Guide #1: How To Get Going with Twython"}]},{"@type":"WebSite","@id":"https:\/\/www.silkstream.net\/blog\/#website","url":"https:\/\/www.silkstream.net\/blog\/","name":"Silkstream","description":"Here you&#039;ll find the latest blogs, white papers and case studies from Silkstream experts.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.silkstream.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/www.silkstream.net\/blog\/#\/schema\/person\/1516b66b9d6da001d8052655282481b1","name":"Ria","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/secure.gravatar.com\/avatar\/dad9acd650d88d7fd9c7e2b77f38d25ec2c921eb7efb622d785820719d8a75df?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/dad9acd650d88d7fd9c7e2b77f38d25ec2c921eb7efb622d785820719d8a75df?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/dad9acd650d88d7fd9c7e2b77f38d25ec2c921eb7efb622d785820719d8a75df?s=96&d=mm&r=g","caption":"Ria"},"description":"SEO &amp; Internet Marketing addict, and aspiring crazy cat lady.","sameAs":["http:\/\/www.silkstream.net","https:\/\/x.com\/RiaLolwut"]}]}},"_links":{"self":[{"href":"https:\/\/www.silkstream.net\/blog\/wp-json\/wp\/v2\/posts\/980","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silkstream.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silkstream.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silkstream.net\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silkstream.net\/blog\/wp-json\/wp\/v2\/comments?post=980"}],"version-history":[{"count":15,"href":"https:\/\/www.silkstream.net\/blog\/wp-json\/wp\/v2\/posts\/980\/revisions"}],"predecessor-version":[{"id":1562,"href":"https:\/\/www.silkstream.net\/blog\/wp-json\/wp\/v2\/posts\/980\/revisions\/1562"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.silkstream.net\/blog\/wp-json\/wp\/v2\/media\/990"}],"wp:attachment":[{"href":"https:\/\/www.silkstream.net\/blog\/wp-json\/wp\/v2\/media?parent=980"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silkstream.net\/blog\/wp-json\/wp\/v2\/categories?post=980"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silkstream.net\/blog\/wp-json\/wp\/v2\/tags?post=980"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}