https://github.com/evilsocket/octoghost
A python script to process Octopress markdown files and write a JSON file ready to import into Ghost.
https://github.com/evilsocket/octoghost
Last synced: 5 months ago
JSON representation
A python script to process Octopress markdown files and write a JSON file ready to import into Ghost.
- Host: GitHub
- URL: https://github.com/evilsocket/octoghost
- Owner: evilsocket
- License: gpl-3.0
- Created: 2014-04-16T23:46:54.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-12-13T11:16:26.000Z (about 11 years ago)
- Last Synced: 2024-12-30T20:51:27.510Z (about 1 year ago)
- Language: Python
- Size: 159 KB
- Stars: 27
- Watchers: 2
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Octopress 2 Ghost
---
A python script to process Octopress markdown files and write a JSON file ready to import into Ghost.
These are the preliminar steps:
* Setup Ghost, signup, signin and remove the welcome post.
* Go to `/ghost/debug` and export the database. It'll save a file named `GhostData.json`.
* Download `octopress2ghost.py` and install the requirements: `pip install translitcodec`
Run the conversion script:
`python octopress2ghost.py | python -mjson.tool > import-this.json`
Where octopress-posts is a directory with the Octopress posts and ghost-data is the JSON exported from Ghost.
Now go to `/ghost/debug` and import the obtained JSON file.
If everything goes well you should be able to signin again and all your Octopress posts will be there.