Coder Social home page Coder Social logo

omaciel / choppedpress Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 244 KB

ChoppedPress lets you split the WordPress XML export file into smaller files that can be used to import your posts, comments, tags and categories into a new WordPress installation.

License: BSD 3-Clause "New" or "Revised" License

CSS 19.50% JavaScript 62.74% Python 11.70% Shell 6.06%

choppedpress's Introduction

ChoppedPress

Introduction

ChoppedPress lets you split the WordPress XML export file into smaller files that can be used to import your posts, comments, tags and categories into a new WordPress installation.

Examples

Assuming you have already gone throught the process of exporting all of your posts, comments and tags into a file named my-blog-YEAR-MONTH-DATE.xml, you could then split it into several smaller XML files using the following command:

choppedpress my-exported-wordpress.xml

This will generate two (this is the default) XML files named out01.xml and out02.xml. The name of the generated files and/or how many files to generate can be specified by using the appropriate flags as show by choppedpress --help.

Usage: choppedpress <INFILE> [[<OUTFILE>] [<TAG>] [<NUMBER>]]

ChoppedPress lets you split the WordPress XML export file into smaller files that can be used to import your posts, comments, tags and categories into a new WordPress installation.

Options:
--version show program's version number and exit
-h, --help show this help message and exit
-i <FILE>, --infile=<FILE>
 The XML file generated by WordPress
-o <FILE>, --outfile=<FILE>
 The name for the smaller XML files. [default: out]
-t TAG, --tag=TAG
 The XML tag that represents your data. [default: /rss/channel/item]
-n NUMBER, --number=NUMBER
 How many new files should be generated. [default: 2]

Installation

ChoppedPress is available at PyPI, so installing it is as simple as executing:

pip install choppedpress

Or you can download the latest version and install it using setup.py:

git clone [email protected]:omaciel/choppedpress.git
cd choppedpress
python setup.py build install

Author

This software is developed by Og Maciel.

choppedpress's People

Contributors

omaciel avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

choppedpress's Issues

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.