https://github.com/bwhaley/svbtle-jekyll
Convert svbtle posts to Jekyll.
https://github.com/bwhaley/svbtle-jekyll
Last synced: over 1 year ago
JSON representation
Convert svbtle posts to Jekyll.
- Host: GitHub
- URL: https://github.com/bwhaley/svbtle-jekyll
- Owner: bwhaley
- Created: 2015-09-23T22:09:44.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-09-23T22:28:09.000Z (almost 11 years ago)
- Last Synced: 2025-01-21T23:32:00.227Z (over 1 year ago)
- Language: Python
- Size: 121 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# svbtle-jekyll
Convert svbtle posts to Jekyll.
Svbtle does not offer an export feature. This python script scrapes the Svbtle Dashboard for a list of posts, Gets the metadata and content for each post, then renders markdown files with YAML front matter for Jekyll.
svbtle-jekyll does the bare minimum to generate basic jekyll compatibility. The resulting markdown and front matter will need almost certainly need editing. But this will hopefully save some time.
## Usage
First clone the repo and do the normal python dance:
$ virtualenv venv
$ . venv/bin/activate
$ pip install -r requirements.txt
Now you need to get a cookie from Svbtle. I didn't build functionality to log in to svbtle and retrieve a cookie, so you need to log in using your browser and find the value for the `remember_user_token` cookie. This is pretty simple. Just use your favorite cookie viewer browser extensions. I use [EditThisCookie for Chrome](https://chrome.google.com/webstore/detail/editthiscookie/fngmhnnpilhplaeedifhccceomclgfbg?hl=en).
Now you can run the tool like this:
$ python svbtle-jekyll.py -c -t
This should grab each post and create an appropriate named Jekyll markdown file at the target specified in `-t`.