This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # From the Zenodo access link, add the part after "token=" here: | |
| #export ZENODO_TOKEN= | |
| # This is for version 1.0.0 (https://doi.org/10.5281/zenodo.10620520) | |
| export RECORD=10620520 | |
| # Uncomment this for version 1.0.1 (https://doi.org/10.5281/zenodo.10869889) | |
| #export RECORD=10869889 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python36 | |
| import sys | |
| import os | |
| import argparse | |
| import time | |
| import logging | |
| import json | |
| def main(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| from github import Github | |
| ''' | |
| pip install PyGithub | |
| https://pygithub.readthedocs.io/en/latest | |
| ''' | |
| #ACCESS_TOKEN="xxx" | |
| ACCESS_TOKEN=None |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import sys, os | |
| from lxml import etree | |
| ''' | |
| USAGE: python blogger2octopress.py blogger_dump.xml | |
| Then check the _drafts and _posts folders. |