Skip to content

Instantly share code, notes, and snippets.

View aharonium's full-sized avatar
☁️

Aharon Varady aharonium

☁️
View GitHub Profile
@aharonium
aharonium / wxr2txt.py
Last active July 19, 2019 01:31 — forked from ruslanosipov/wxr2txt.py
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]