GithubHelp home page GithubHelp logo

ruarxive / wparc Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 1.0 23 KB

Wordpress API data and files archival command line tool

License: Apache License 2.0

Python 100.00%
wordpress backup digital-preservation archives

wparc's Introduction

wparc: a command-line tool to backup public data from Wordpress websites using Wordpress API

wparc is a command line tool used to backup data from Wordpress based websites. It uses /wp-json/ API provided by default Wordpress installation and extracts all data and media files

Main features

  • Data extraction
  • Download all media files

Installation

Any OS

A universal installation method (that works on Windows, Mac OS X, Linux, โ€ฆ, and always provides the latest version) is to use pip:

# Make sure we have an up-to-date version of pip and setuptools:
$ pip install --upgrade pip setuptools

$ pip install --upgrade wparc

(If pip installation fails for some reason, you can try easy_install wparc as a fallback.)

Python version

Python version 3.6 or greater is required.

Usage

Synopsis:

$ wparc [command] [flags]

See also python -m wparc and wparc [command] --help for help for each command.

Commands

Ping command

Pings /wp-json/ API endpoint of selected domain

Pings /wp-json/ endpoint "https://arctic.gov.ru" website

$ wparc ping --domain arctic.gov.ru

Dump command

Dumps all data routes listed in /wp-json/ API endpoint

Dumps all data from "https://agentura.ru" website

$ wparc dump --domain agentura.ru

Getfiles command

Downloads all media file listed in "wp_v2_media.jsonl" file that should be dumped using command "dump"

Downloads all media from "dissident.memo.ru" website

$ wparc getfiles --domain dissident.memo.ru

wparc's People

Contributors

ivbeg avatar snyk-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

issue-system

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.