?

Log in

No account? Create an account
Entries Journal Reading List Calendar User Info Previous Previous Next Next
Tumblr CrossPost:Hi, I've been using python to backup, which has been working great. However I can't - Morgan Dawn Livejournal:The Here And Now
The Here And Now
morgandawn
morgandawn
Tumblr CrossPost:Hi, I've been using python to backup, which has been working great. However I can't
Posted in full at: https://ift.tt/2Pj7JXG at December 05, 2018 at 05:00PM

If you open up the tumblr_backup.md file you have in your bbolli folder (you can open the file on any text editor) you’ll see a list of flags you can use. Or you can read it here https(://)github(.)com/bbolli/tumblr-utils/blob/master/tumblr_backup(.)md

For tags specifically, for example: 

-t TAGS, –tags=TAGS  save only posts tagged TAGS (comma-separated values; case-insensitive)

So let’s say I want to backup only the tag “dumblr” from my blog. 

I follow the steps right until the end where I need to run the python and insert my URL, so (I’m going to repeat the first passages for the sake of others too; you can skip down to point 4):

1) When I open the command prompt I’ll see
C:\Users\yourusername> and a blinking cursor 

We need to manually get to where I have put the bbolli folder (ideally already extracted from the zip because why would you ever keep it in there). It can be any folder depending on where I’ve saved it, but for the sake of brevity we’ll say it’s in Downloads.

To tell command prompt that we need to move inside a folder, we type “cd” followed by the name of the folder, so: 

2) C:\Users\yourusername>cd Downloads

The string will then change into 
C:\Users\yourusername\Downloads> 

We’re in! Now we need to move inside the bbolli folder, so: 

3) C:\Users\yourusername\Downloads>cd bbolli-tumblr-utils-stringthatyouhaveattheendofthename (it changes for everyone, so carefully copy yours)

The string will then change into 
C:\Users\yourusername\Downloads\bbolli-tumblr-utils-personalizedstring>

And we’re in!

Now, this is where I want to put the flags to specify what kind of content I want in case it’s a smaller group than the entire backup (or if I want to save likes, for example, where I’d need to use the flag -l  (it’s a lower case L, not a 1)). We established I want the “dumblr” tag only. 

4) Normally, at this point, if I wanted to backup everything I’d type

C:\Users\yourusername\Downloads\bbolli-tumblr-utils-personalizedstring>tumblr_backup.py fiction-is-not-reality2

And python would save everything. But we want only one tag, so where do we put it? Between the program and the blogname. 

C:\Users\yourusername\Downloads\bbolli-tumblr-utils-personalizedstring>tumblr_backup.py -t DUMBLR fiction-is-not-reality2 
(you don’t need to write it in all caps actually)

Python then successfully goes through all my posts, and ends up saving only 6, tagged “dumblr”. 

We do it in hard mode, I have a tag made of two words: “antis logic”. What do I do? I put it in quotation marks. 

C:\Users\yourusername\Downloads\bbolli-tumblr-utils-personalizedstring>tumblr_backup.py -t “ANTIS LOGIC” fiction-is-not-reality2
(again, it’s not case sensitive)

Python then successfully goes through all my posts, and ends up saving only 17, tagged “antis logic”.

Hope this helps! 

Tags:PDWCrosspost, tumblr backup, archiving

Tumblr post (this is likely a reblog, and may have more pictures over there)
December 05, 2018 at 05:00PM


[A Dreamwidth post with comment count unavailable comments | Post or read on Dreamwidth| How to use OpenID]

Tags:

Leave a comment