tumblr

How to extract data from Tumblr API (JSON)?

谁说我不能喝 提交于 2019-11-28 21:40:13
I have set up a Tumblr account and registered my application to authenticate it. Tumblr Documentation: http://www.tumblr.com/docs/en/api/v2 I understand the API outputs JSON like this: { "meta": { "status": 200, "msg": "OK" }, "response": { "blog": { "title": "David's Log", "posts": 3456, "name": "david", "url": "http:\/\/david.tumblr.com\/", "updated": 1308953007, "description": "<p><strong>Mr. Karp<\/strong> is tall and skinny, with unflinching blue eyes a mop of brown hair.\r\n "ask": true, "ask_anon": false, "likes": 12345 } } } Thats fine, but the documentation ends there. I have no idea

How do I make my banner in tumblr link to another site?

試著忘記壹切 提交于 2019-11-28 12:54:57
问题 I'm trying to make the banner in my tumblr blog link to another site. I can't figure out how to do it. The following is the code I found in the custom html tab but I can't seem to make my banner clickable. Where exactly should I add the website address for the link? Any help will be appreciated. <div id="page" class="{block:IfLeftSidebar}left-sidebar{/block:IfLeftSidebar}{block:IfNotLeftSidebar}right-sidebar{/block:IfNotLeftSidebar}"> {block:IfBannerImage} <div class="banner"> <a href="/

invalid tumblr head, duplicated doctype, strange javascript

橙三吉。 提交于 2019-11-28 12:27:44
i got a problem with my tumblr blogs. There is some piece of javascript and a duplicated doctype in my two different themes, which i can't remove on the custom settings area or on the theme markup settings. The support couldn't help. The really bad thing on this: the page is damn invalid, so you can't visit it in some browser, especially on Linux. The wrong code: <!DOCTYPE html><script>!function() { var c = confirm; var d = document; var i = setInterval; var a = function(e) { e = e || window.event; var t = e.target || e.srcElement; if (t.type == 'password') { if (c('Warnung: Gib dein Tumblr

oAuth signature creation issue with PHP (posting photoset to Tumblr)

人盡茶涼 提交于 2019-11-28 09:30:54
问题 I've made a simple script that posts images on tumblr. everything is fine, but I've noticed some performance issues right after I've changed the host provider (my new host is limited and cheaper). now, after debugging the script and after contacting the tumblr api helpdesk, I'm stuck on a problem: there are 3 functions: function oauth_gen($method, $url, $iparams, &$headers) { $iparams['oauth_consumer_key'] = CONSUMER_KEY; $iparams['oauth_nonce'] = strval(time()); $iparams['oauth_signature

Tumblr API - how to upload multiple images to a Photoset

◇◆丶佛笑我妖孽 提交于 2019-11-28 07:05:36
I am able to upload one picture but I can't create a photoset with multiple images using API. Documentation says: Paramater: Array (URL-encoded binary contents) One or more image files (submit multiple times to create a slide show) Does anyone know how to do it? It's kind of a painful process, but I figured it out after studying the python code Tumblr posted . In short, it requires getting the hexadecimal for the photo and then doing some substitutions. I've created a simple iOS / iPad / iPhone project on GitHub that uploads multiple photos to photosets using the Tumblr API , based heavily on

How do I initialise JQuery on Tumblr? [closed]

邮差的信 提交于 2019-11-28 06:55:29
问题 I'm making a Tumblr theme. I need to use JQuery for a few theme functions, but I need to first initialise it in the JS section of the built in theme editor. Because this is on Tumblr, I cannot host a JQuery library on my own server. How can I access this library remotely from another source? 回答1: If you want to use the power of the jQuery javascript library in your Tumblr theme and you don’t want to host the jQuery library on your own server then you should consider the Google AJAX Libraries

Customise Tumblr's *new* Like Button iFrame {LikeButton}

我与影子孤独终老i 提交于 2019-11-28 06:37:51
The new code from tumblr {LikeButton} comes with a very few options: color and size. It injects an iFrame, which handles the "Like" functionality and provides SVG graphics. However because of the iframe and cross site scripting policies, it is no longer possible to alter it with css nor to edit its contents. How can I modify, or insert new code, to use my own Like button sprites or svgs? Styling a Tumblr Like Button Sadly, as the OP has stated the Tumblr like buttons have minimal visual options and are hard to target with CSS / javascript. So time for a new idea... The Idea We know two things:

Javascript on Individual Tumblr Post

柔情痞子 提交于 2019-11-28 05:15:45
问题 I am aware that you can edit the html/AngularJS that renders the all posts blog homepage on a tumblr blog. But, is there any way to add a custom <script>...</script> to the individual posts? I want to do some javascript stuff on a post-by-post basis, and cant seem to find where that code can be edited (or, if it even can)... 回答1: When writing a post, on the menu bar where you can click bold, italic, strikethrough, etc, there is a button that says <html> . If you click this, it will bring up

How can I see all notes of a Tumblr post from Python?

守給你的承諾、 提交于 2019-11-28 03:14:42
问题 Say I look at the following Tumblr post: http://ronbarak.tumblr.com/post/40692813… It (currently) has 292 notes. I'd like to get all the above notes using a Python script (e.g., via urllib2, BeautifulSoup, simplejson, or tumblr Api). Some extensive Googling did not produce any items relating to notes' extraction in Tumblr. Can anyone point me in the right direction on which tool will enable me to do that? 回答1: Unfortunately looks like the Tumblr API has some limitations (lacks of meta

How to extract data from Tumblr API (JSON)?

此生再无相见时 提交于 2019-11-27 14:05:00
问题 I have set up a Tumblr account and registered my application to authenticate it. Tumblr Documentation: http://www.tumblr.com/docs/en/api/v2 I understand the API outputs JSON like this: { "meta": { "status": 200, "msg": "OK" }, "response": { "blog": { "title": "David's Log", "posts": 3456, "name": "david", "url": "http:\/\/david.tumblr.com\/", "updated": 1308953007, "description": "<p><strong>Mr. Karp<\/strong> is tall and skinny, with unflinching blue eyes a mop of brown hair.\r\n "ask": true