{"id":282,"date":"2007-09-15T01:56:45","date_gmt":"2007-09-14T22:56:45","guid":{"rendered":"http:\/\/www.void.gr\/kargig\/blog\/?p=282"},"modified":"2007-09-15T01:57:37","modified_gmt":"2007-09-14T22:57:37","slug":"imageshackpy","status":"publish","type":"post","link":"https:\/\/www.void.gr\/kargig\/blog\/2007\/09\/15\/imageshackpy\/","title":{"rendered":"imageshack.py"},"content":{"rendered":"<p>This python script is usefull for uploading images to <a href=\"http:\/\/imageshack.us\">imageshack<\/a> via the command line.<\/p>\n<p>The original script found in an <a href=\"http:\/\/mail.python.org\/pipermail\/python-list\/2005-August\/336971.html\">old post in python&#8217;s mailing list<\/a> is not complete. A user with nick Agiofws on <a href=\"http:\/\/www.irc.gr\">GrIRC-net<\/a> expanded it a bit and used it together with a bash script in order to get the url of the uploaded image. What I did was to implement a regexp search for a &#8220;paste-friendly&#8221; url at the bottom of the python script. <\/p>\n<p>Feel free to use it, and change it as you wish: <a href='http:\/\/www.void.gr\/kargig\/blog\/wp-content\/imageshack.py.gz' title=''>imageshack.py.gz<\/a> (You need to gunzip it first.)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This python script is usefull for uploading images to imageshack via the command line. The original script found in an old post in python&#8217;s mailing list is not complete. A user with nick Agiofws on GrIRC-net expanded it a bit and used it together with a bash script in order to get the url of [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ep_exclude_from_search":false,"footnotes":""},"categories":[5,3],"tags":[],"class_list":["post-282","post","type-post","status-publish","format-standard","hentry","category-internet","category-linux"],"aioseo_notices":[],"views":6877,"_links":{"self":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/282","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/comments?post=282"}],"version-history":[{"count":0,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/282\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/media?parent=282"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/categories?post=282"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/tags?post=282"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}