Room archiver utility for Webex Teams
Project description
Simple utility to archive Webex Teams rooms
Webex Teams Archiver extracts the messages and files out of a Webex Teams room and saves them in text, HTML, and JSON formats.
Example
from webexteamsarchiver import WebexTeamsArchiver
personal_token = "mytoken"
archiver = WebexTeamsArchiver(personal_token)
# room id from https://developer.webex.com/docs/api/v1/rooms/list-rooms
room_id = "Y2lzY29zcGFyazovL3VzL1JPT00vd2ViZXh0ZWFtc2FyY2hpdmVy"
archiver.archive_room(room_id)
Produces the following files:
$ ls
Title_Timestamp.tgz
Title_Timestamp
$ ls Title_Timestamp/
Title_Timestamp.html
Title_Timestamp.json
Title_Timestamp.txt
attachments/
avatars/
space_details.json
Below is an example of a simple room that got archived.
Note 1: The HTML version of the archive requires Internet connectivity because of the CSS, which is not packaged with the archive because of licensing conflicts.
Note 2: Please note that use of the Webex Teams Archiver may violate the retention policy, if any, applicable to your use of Webex Teams.
Installation
Installing and upgrading is easy:
Install via PIP
$ pip install webexteamsarchiver
Upgrading to the latest Version
$ pip install webexteamsarchiver --upgrade
Options
The archive_room method exposes the following options:
Argument |
Default Value |
Description |
---|---|---|
text_format |
True |
Create a text version of the archive |
html_format |
True |
Create an HTML version of the archive |
json_format |
True |
Create a JSON version of the archive |
In addition, the options kwargs supports the following additional options today:
Argument |
Default Value |
Description |
---|---|---|
compress_folder |
True |
Compress archive folder |
delete_folder |
False |
Delete the archive folder when done |
reverse_order |
True |
Order messages by most recent on the bottom |
download_attachments |
True |
Download attachments sent to the room |
download_avatars |
True |
Download avatar images |
download_workers |
15 |
Number of download workers for downloading files |
timestamp_format |
%Y-%m-%dT%H:%M:%S |
Timestamp strftime format |
file_format |
gztar |
Archive file format |
Questions, Support & Discussion
webexteamsarchiver is a community developed and community supported project. Feedback, thoughts, questions, issues can be submitted using the issues page.
Contribution
webexteamsarchiver is a community developed project. Code contributions are welcome via PRs!
Copyright (c) 2018-2021 Cisco and/or its affiliates.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for webexteamsarchiver-0.11.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f434b81b23f7ce5c9bfef40d68e8f01b4c347f60a236a932866e99f9df7d90e9 |
|
MD5 | 79d76224e938a4075fd9726eb38e2a3d |
|
BLAKE2b-256 | 4d6be96e9c47df763d451b049a27ff620f20977dd1fcf1d5f7a520c76d1e396e |
Hashes for webexteamsarchiver-0.11.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3d123cb1d4e2ad6a55498d889c26b0831dfaf954c6fb8f9b4cbfd5651e28b29 |
|
MD5 | 800b3d4ed21c8c7944f32700ca88ab65 |
|
BLAKE2b-256 | dc1c7c92187dcd145a0a28f72b81f726b1f6adac0f3796b63076c9572cd410f8 |