项目作者: spambusters

项目描述 :
Backup a tumblr blog to a local SQLite database using the Tumblr API
高级语言: Python
项目地址: git://github.com/spambusters/tumblr-backup.git
创建时间: 2017-08-29T18:37:06Z
项目社区:https://github.com/spambusters/tumblr-backup

开源协议:GNU General Public License v3.0

下载


tumblr-backup

Backup a tumblr blog to a local SQLite database using the Tumblr API.
This does not include downloading images. For that, check out tumblr-dl.

Requirements

  1. Python 3.6
  2. requests library pip install requests

Usage

  1. tumblr-backup.py [-h] [-o OFFSET] blog
  2. positional arguments:
  3. blog Tumblr blog
  4. optional arguments:
  5. -o, --offset Post offset

Config

This script uses the Tumblr API so you’ll need an API key.
This can be obtained by using the Tumblr API Console.

Next, create a config file. (e.g. config.txt).
The API key should be the first and only line of the config file.

Finally, insert the PATH of the config into the CONFIG variable of tumblr-backup.py.

CONFIG = '../config.txt'