{"id":2771,"date":"2018-04-23T13:10:16","date_gmt":"2018-04-23T13:10:16","guid":{"rendered":"https:\/\/www.jamez.it\/blog\/?p=2771"},"modified":"2018-04-23T13:23:55","modified_gmt":"2018-04-23T13:23:55","slug":"turn-twitter-history-micro-blog","status":"publish","type":"post","link":"https:\/\/jamez.it\/blog\/2018\/04\/23\/turn-twitter-history-micro-blog\/","title":{"rendered":"Turn your Twitter history in a micro-blog"},"content":{"rendered":"<p>What&#8217;s more navel-gazing than talking about your blog on your blog? Ever more distrustful of social media companies, I decided to import my tweets here. After trying a dozen or so of WordPress plugins for the task and finding most of them non-functional or very subpar (&#8220;of course it only imports the last 200 tweets!&#8221;), I went on and wrote my own importer.<\/p>\n<h4><a href=\"https:\/\/github.com\/zkg\/twitter-history-to-wordpress\" target=\"_blank\" rel=\"noopener noreferrer\">twitter-history-to-wordpress<\/a><\/h4>\n<p>Imports tweets, images and videos from your tweet archive to your WordPress blog<\/p>\n<p>This script does some basic filtering on your tweets (no RT, no replies, no messages with many recipients), connects to your WordPress blog via wordpress_xmlrpc and creates posts with images, videos and all the rest. The only thing we are missing, as far as I am concerned, is some way to progess gif files. Each post created has the date and time of the original tweet and is tagged &#8220;lessthan280chars&#8221;.<\/p>\n<p><strong>Instructions<\/strong><\/p>\n<ol>\n<li>Go to <a href=\"https:\/\/github.com\/mwichary\/twitter-export-image-fill\" target=\"_blank\" rel=\"noopener noreferrer\">twitter-export-image-fill<\/a> and follow the instructions to a T.<\/li>\n<li>Download twitterToWordpress.py and place it in the root directory of your twitter archive.<\/li>\n<li>Open twitterToWordpress.py and put your WordPress blog credentials and URL on line 14. You may also want to change the default tag for your twitter posts to something other than &#8216;lessthan280chars&#8217; on line 17.<\/li>\n<li>Go to the root directory of your twitter archive and run twitterToWordpress.py there (using terminal\/command line).<\/li>\n<\/ol>\n<p>Done! You are ready for the digipocalypse.<\/p>\n","protected":false},"excerpt":{"rendered":"<p> Imports tweets, images and videos from your tweet archive to your Wordpress blog. Ever more distrustful of social media companies, I decided to import my tweets on my blog.<br \/>\n &#8230;<\/p>\n<p><a class=\"understrap-read-more-link button button-black\" href=\"https:\/\/jamez.it\/blog\/2018\/04\/23\/turn-twitter-history-micro-blog\/\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[1],"tags":[78,10],"_links":{"self":[{"href":"https:\/\/jamez.it\/blog\/wp-json\/wp\/v2\/posts\/2771"}],"collection":[{"href":"https:\/\/jamez.it\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jamez.it\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jamez.it\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jamez.it\/blog\/wp-json\/wp\/v2\/comments?post=2771"}],"version-history":[{"count":8,"href":"https:\/\/jamez.it\/blog\/wp-json\/wp\/v2\/posts\/2771\/revisions"}],"predecessor-version":[{"id":2779,"href":"https:\/\/jamez.it\/blog\/wp-json\/wp\/v2\/posts\/2771\/revisions\/2779"}],"wp:attachment":[{"href":"https:\/\/jamez.it\/blog\/wp-json\/wp\/v2\/media?parent=2771"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jamez.it\/blog\/wp-json\/wp\/v2\/categories?post=2771"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jamez.it\/blog\/wp-json\/wp\/v2\/tags?post=2771"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}