Skip to content

Instantly share code, notes, and snippets.

Avatar
☁️

Aharon Varady aharonium

☁️
View GitHub Profile
@aharonium
aharonium / wxr2txt.py
Last active Jul 19, 2019 — forked from ruslanosipov/wxr2txt.py
Script to convert WordPress posts to plain text files
View wxr2txt.py
#!/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]
You can’t perform that action at this time.