Script to export pads and associated images :
- from search on Hackpad.com
- all pads associated to the user
If you use Jingo, you can import .md files to your self-hosted Jingo.
(Note: some differences exist between the Markdown notation exported from HackPad and the notation used in Jingo).
- Python 3 (tested with 3.5)
- PyYAML
- for hackpad-exportAllPads.py:
- for hackpad-exportFromSearch.py:
- update the parameter file:
- consumer_key and consumer_secret: see your API key in your account settings
- subdomain: mysubdomain for http://mysubdomain.hackpad.com, leave empty if you're not using a subdomain
- format: 'md', 'html' or 'txt'
- for Jingo (only for hackpad-exportFromSearch.py) :
- import : true to activate import in Jingo (Note : if only the md format is configured)
- parameters to connect to the server where Jingo is hosted
- directories where files are stored (on my server, md files and images are not in the same directory)
- run the script:
- to export pads resulting from search:
$ python hackpad-exportFromSearch.py keyword
- to export all Pads:
$ python hackpad-exportAllPads.py
All pads for which you have access are exported in temp directory with images (and imported in Jingo, if configured).
Be aware of Hackpad.com API parameters (the number of returned results has to be adjusted in the parameter file (no pagination system))
hackpad.py : light version of Falicon/Python-Hackpad-API