GithubHelp home page GithubHelp logo

mattfinlayson / tumblr2yaki Goto Github PK

View Code? Open in Web Editor NEW

This project forked from codeactual/tumblr-backup

1.0 3.0 0.0 100 KB

Downloads post content and metadata using the Tumblr API

License: MIT License

Python 100.00%

tumblr2yaki's Introduction

tumblr2yaki

Downloads post content and metadata using the Tumblr API. Then takes the json output and converts video and text blocks to individual index.txt pages with the correct directory structure and the text/html content type.

Usage

python tumblrbackup.py > backup.json
python convert2yaki.py

Output

[
    {
        "body": "<p>Text body.</p>",
        "id": 11309083598,
        "tags": [],
        "timestamp": 1318313280,
        "title": "Text post",
        "type": "text"
    },
    {
        "id": 11084927889,
        "source": "Quote Author",
        "source_title": "quotesource.com",
        "source_url": "http://www.quotesource.com/",
        "tags": [
            "tag1",
            "tag2"
        ],
        "text": "Quote body.",
        "timestamp": 1317865857,
        "type": "quote"
    },
    ...
]

Configuration

{
    "url": "my.tumblr.com",
    "api_key": "myApiKey",
    "strip_metadata": ["format", "note_count", "post_url", "reblog_key", "date", "blog_name"],
    "backup_file": "backup.json",
    "yaki_root": "Yaki/pages/main/blog"
}

Tests

cd test
python -m unittest discover

tumblr2yaki's People

Contributors

mattfinlayson avatar

Stargazers

 avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.