johanneszab / TumblThree

A Tumblr Blog Backup Application
https://www.jzab.de/content/tumblthree
MIT License
921 stars 130 forks source link

Enhancement Request - mass upload to queue #212

Open Kvothe1970 opened 6 years ago

Kvothe1970 commented 6 years ago

Hi,

using TumblThree to fill the queue (and ost directly) of a configured blog, would be a very welcome addition.

https://www.tumblr.com/docs/en/api/v2#photo-posts https://www.tumblr.com/docs/en/api/v2#blog-queue

The idea is as following:

  1. Allow to define a local source for upload (a folder)
  2. Allow to define a target blog to upload to the queue (in case you have more than one blog)
  3. Allow to set the number of images per post created (As in single photo posts vs. multi image posts)
  4. Allow to for TumblThree to move queued images to a different local location (Uploaded folger for example)
johanneszab commented 6 years ago

Well, I don't know.

TumblThree doesn't use the API v2. I've actually ported the code using that api in the beginning, but you need to ask Tumblr that they unlock your key, otherwise it's rate limited to only a few dozen requests per hour. Application-wide, under all users. They didn't unlock it. No big surprise here, given that TumblThree mass downloads their content.

Thus, if someone would implement that, every user has to register the application with his own key, and even then it's still rate limited.

Personally, I'll most likely will not add this, but if someone else cares, sure..

Kvothe1970 commented 6 years ago

Ah Gotcha, I hear you. Well it would be neat if if someone feels like it. But looking at where Tumblr is going with being owned by Verizon, I would assume that is not going to go into a better direction. Thanks for commenting and letting me know, Johannes.

Hrxn commented 6 years ago

I know that this is somewhat inconvenient to many users, but I think using the current Tumblr API with OAuth authentication is a reasonable choice. True, you have to provide your own API key and - secret (i.e. for each user) to make access possible, but at least it works. There are still API limitations in place, that is correct, but afaik they are something like 1000 requests per hour and 5000 requests per day, not too unreasonable, and it works..

johanneszab commented 6 years ago

Well, then add it. It's open source, and my intention never was to upload anything with TumblThree, but to download content. Thus I'm not even sure why this request is here. Is there really no usable uploading/posting/content management application for tumblr at all?

It's certainly possible, but most likely you'll have to code some kind of wizard for the registration process, then managing states to not waste api requests and implement a queue that understands if the requests are exhausted so that it has to wait, next to implement all the posting related stuff. It's doable, but certainly takes time and thoughts to properly implement.

Kvothe1970 commented 6 years ago

There is no option to mass upload images in any shape or form. No web service, no app. There are some apps you can buy from very dubious sources used for spamming etc but that does not seem the way to do it and I have no idea how they got around doing it like this. Uploading images to tumblr, as it is, is rather tedious but that ist just the way it is.

Hrxn commented 6 years ago

Just for the record, I did not mean to express a "+1" to that specific feature request, although I agree with the point about automation of uploading/queuing. And yes, there is no 3rd-party app (and no official app, obviously) for this that seems legit and trustworthy, as far as I am aware.

I don't know if this helps, but maybe you haven't tried this one yet @Kvothe1970, just log on to your Tumblr account, go to settings, then "Labs" and activate this new "Queue 2.0" experiment. I have no idea what it does, but it might be worth a try.

My initial intention was simply to mention that you can actually use the Tumblr API (v2), to let you know that this possibility exists, including downloading content, which is also my primary only use case. This is something what has been done on another project, very recently actually, and I'm currently using this, with my own API credentials.

Kvothe1970 commented 6 years ago

Hi @Hrxn I have turned that on. It gives you options in regards to being more flexible when posting. But not to easier uploads. Tumblr considers dragging and dropping n images into one post a mass upload :)

Hrxn commented 6 years ago

Just FYI, because I've earlier mentioned some other project, which sounds rather ominous.

This is open source as well.. (Yay!) It's also on GitHub as well... (Yay!!)

https://github.com/mikf/gallery-dl

Issue regarding Tumblr & OAuth: https://github.com/mikf/gallery-dl/issues/65

Kvothe1970 commented 6 years ago

Btw I have now found a way to mass upload single images to queue. IFTTT is the solution here:

https://ifttt.com/applets/75037044d-batch-upload-to-tumblr-queue

you will need a free dropbox account and give IFTTT access to a folder in your dropbox and access to your tumblr. It is pretty straightforward and does not use the API, hence the limit. But, it works.