Pumping pads as files into publishing frameworks!
Go to file
Luke Murphy 5345aafcc0
Add missing quote import for Python 2.x
When running under Python 2.x, this import is missing and we get an
error when running anything with `etherdump pull`.
2019-03-06 10:21:51 +01:00
bin python3 2018-01-12 14:42:55 +01:00
etherdump Add missing quote import for Python 2.x 2019-03-06 10:21:51 +01:00
.gitignore ignore etherdump settings folder) 2018-01-12 14:44:01 +01:00
LICENSE.txt added license document 2015-09-17 17:51:48 +02:00
padinfo.sample.json continued tweaks 2015-09-19 11:43:16 +02:00
README.md index command changes for python3 2018-01-12 15:46:10 +01:00
setup.py python3 2018-01-12 14:42:55 +01:00

etherdump

Tool to publish etherpad pages to files.

Requirements

* python3
* html5lib
* requests (settext)
* python-dateutil, jinja2 (index subcommand)

Installation

pip install python-dateutil jinja2 html5lib
python setup.py install

Example

mkdir mydump
cd myddump
etherdump init

The program then interactively asks some questions:

Please type the URL of the etherpad: 
	http://automatist.local:9001/
The APIKEY is the contents of the file APIKEY.txt in the etherpad folder
Please paste the APIKEY: 
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

The settings are placed in a file called .etherdump/settings.json and are used (by default) by future commands.

subcommands

  • init
  • pull
  • list
  • listauthors
  • gettext
  • settext
  • gethtml
  • creatediffhtml
  • revisionscount
  • index
  • deletepad

To get help on a subcommand:

etherdump revisionscount --help

Change log / notes

Originally designed for use at: constant.

17 Oct 2016

Preparations for Machine Research 2

6 Oct 2017

Feature request from PW: When deleting a previously public document, generate a page / pages with an explanation (along the lines of "This document was previously public but has been marked .... maybe give links to search").

3 Nov 2017

machineresearch seems to be NOPUBLISH but still exists (also in recentchanges)

Jan 2018

Updated files to work with python3 (probably this has broken python2).