Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
etherdump
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
aa
etherdump
Commits
0d170b25
Commit
0d170b25
authored
Jun 18, 2015
by
Michael Murtaugh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better doc
parent
117430b3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
2 deletions
+35
-2
.gitignore
.gitignore
+1
-0
README.md
README.md
+25
-0
etherdump
etherdump
+2
-2
padinfo.sample.json
padinfo.sample.json
+7
-0
No files found.
.gitignore
View file @
0d170b25
...
...
@@ -2,3 +2,4 @@ venv/
sites/
*.pyc
*~
padinfo.json
README.md
View file @
0d170b25
...
...
@@ -17,3 +17,28 @@ Installation
pip install html5lib jinja2
Padinfo file
-------------
The easiest way to use etherdump is to create a padinfo JSON file that contains all the information necessary to connect to a particular etherpad server (including hostname, port, and API key).
cp padinfo.sample.json padinfo.json
nano padinfo.json
And then...
etherdump --padinfo padinfo.json list
listpads
----------
To dump the names of the pads in JSON format:
./etherdump --padinfo padinfo.json listpads
./etherdump --padinfo padinfo.json listpads > pads.json
To format for the screen add the --lines option:
./etherdump --padinfo padinfo.json listpads --lines
etherdump
View file @
0d170b25
...
...
@@ -11,6 +11,7 @@ from datetime import datetime
PADINFO_DEFAULTS
=
{
"hostname"
:
""
,
"port"
:
9001
,
"apiversion"
:
"1.2.9"
,
"apiurl"
:
"/api/"
}
...
...
@@ -326,8 +327,7 @@ if __name__ == "__main__":
apikey
=
padinfo
.
get
(
"apikey"
)
)
if
verbose
:
print
(
"Connecting to {0}"
.
format
(
padserver
.
apiurl
),
file
=
sys
.
stderr
)
print
(
"Connecting to {0}"
.
format
(
padserver
.
apiurl
),
file
=
sys
.
stderr
)
###############################
# Command Dispatch
...
...
padinfo.sample.json
0 → 100644
View file @
0d170b25
{
"hostname"
:
"localhost"
,
"port"
:
9001
,
"apiurl"
:
"/api/"
,
"apiversion"
:
"1.2.9"
,
"apikey"
:
"XXXXXXXXXXXXXXXXXXXXXXXXX"
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment