Skip to content

Instantly share code, notes, and snippets.

View jaffermaniar's full-sized avatar

Jaffer jaffermaniar

View GitHub Profile
@ruslanosipov
ruslanosipov / wxr2txt.py
Created June 2, 2014 03:40
Script to convert WordPress posts to plain text files
#!/usr/bin/env python
"""This script converts WXR file to a number of plain text files.
WXR stands for "WordPress eXtended RSS", which basically is just a
regular XML file. This script extracts entries from the WXR file into
plain text files. Output format: article name prefixed by date for
posts, article name for pages.
Usage: wxr2txt.py filename [-o output_dir]