Home > piratepad

piratepad

Piratepad is a project mainly written in Python, it's free.

small utility to backup PP pages.

This small utility was written for a very special case where I want a quick way to access a list of pages on PiratePad, albeit it should work with most EtherPad clones.

Said pages could be written with any format in mind (ie: mdwn, rest, textile, asciidoc, prog lang), except for the one main page. This page MUST comply with one small detail: List the related pages.

That is:

blablabla.
*blabla*, **blablabla**
http://piratepad.net/something

more blabla.

This way, when we execute this piece of code, as a result we will have something similar to this:

{'parent-page': {'url': 'http://piratepad.net/parent-page', 'rev': 0, 'export': {'txt': 'http://piratepad.net/ep/pad/export/parent-page/rev.0?format=txt', 'doc': 'http://piratepad.net/ep/pad/export/parent-page/rev.0?format=doc', 'html': 'http://piratepad.net/ep/pad/export/parent-page/rev.0?format=html', 'pdf': 'http://piratepad.net/ep/pad/export/parent-page/rev.0?format=pdf'}, 'related': {'something': {'url': 'http://piratepad.net/something', 'rev': 0, 'export': {'txt': 'http://piratepad.net/ep/pad/export/something/rev.0?format=txt', 'doc': 'http://piratepad.net/ep/pad/export/something/rev.0?format=doc', 'html': 'http://piratepad.net/ep/pad/export/something/rev.0?format=html', 'pdf': 'http://piratepad.net/ep/pad/export/something/rev.0?format=pdf'}}}}}

Or in other words, we will get the main page, its url, its revision and the related pages with the same attributes of their own.

Previous:CySim