Israblog Migration to Wordpress
This is the online-deployed version of the original Israblog backup repo. It's almost entirely based on the original repo and the work done by Eliram, with a few modifications made by Shir to create the Wordpress-style XML.
Requirements
- Python 3
Installation and Usage (Source directory!)
- Download or clone the repo.
- cd into the project directory.
- Run
pip install -r requirements.txt
to install dependencies (they're necessary for the Wordpress conversion). - Run flask with:
export FLASK_APP=app.py
export FLASK_ENV=development
(Recommended)flask run
- Save your backup file in accordance with the instructions, upload it and download the newly converted file.
Contents
- app.py - The app file (runs on Flask).
- convert.py - Converts the Israblog HTML backup into XML/JSON.
- convert_to_wp.py - Converts the Israblog HTML backup into a Wordpress XML.
- templates - Folder that contains the two HTML templates required for the deployed version.
- static - Folder that contains the static client-side files, such as JavaScript and CSS files.
- uploads - A placeholder folder to contain all file uploads.
Dependencies
- pytz - A timezone utility for Python. For more information, check their PyPI page.
- flask - Flask is a Python microframework used to build and run the local server on which the app is running. For full Flask documentation, try the Flask website.
- gunicorn - A Python WSGI HTTP Server for UNIX. For more information, check their website.
Known Issues
There are no current issues at the time.