Support for Google Apps Groups - initial code release

30 views
Skip to first unread message

Kurt Seifried

unread,
Dec 25, 2010, 1:31:08 AM12/25/10
to GoogleCL Discuss
Ok it's not pretty code, but it is working code (and GPLv3 licensed,
so share and enjoy).

This is a simple Python script to export a list of users, it
essentially emulates a user logging in to Google Apps, clicking on the
groups management and then clicking through the lists manually
(hitting "Next" if there is a Next page since it only shows 30 groups
or users at a time). It then saves the list name, user name, email
address and membership role into a CSV file.

To make it work simply change the domain name, user name and password
to yours and it should work.

https://code.google.com/p/google-apps-groups-management-tools/source/browse/trunk/google-apps-groups-export.py

TODO: main thing is to add support for Google CLI to upload the CSV
file, and to fix up the lxml html parsing (I'm used to BeautifulSoup,
but apparently lxml is the standard now).

If anyone has patches/etc. please feel free to send them to me so I
can improve the code.

--
Kurt Seifried
ku...@seifried.org

Jason Holt

unread,
Dec 29, 2010, 5:27:59 AM12/29/10
to googlecl...@googlegroups.com

Thanks Kurt!

sent from my android

Jason Holt

unread,
Dec 29, 2010, 5:29:02 AM12/29/10
to googlecl...@googlegroups.com

Thanks Kurt!

sent from my android

On Dec 28, 2010 2:28 PM, "Kurt Seifried" <ku...@seifried.org> wrote:
Reply all
Reply to author
Forward
0 new messages