Simple, unofficial library with some example scripts to access data from the Spond API.
pip install spond
You need a username and password from Spond
import asyncio
from spond import spond
username = '[email protected]'
password = 'Pa55worD'
async def main():
s = spond.Spond(username=username, password=password)
groups = await s.get_groups()
for group in groups:
print(group['name'])
await s.clientsession.close()
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
Get details of all your group memberships and all members of those groups.
) Get details of events, limited to 100 by default. Optional parameters allow filtering by start and end datetimes, group; more events to be returned; inclusion of 'scheduled' events.
Get a member's details.
Get all your messages.
Send a message with content text
in a specific chat with id chatId
.
The following scripts are included as examples. Some of the scripts might require additional packages to be installed (csv, ical etc).
Rename the file config.py.sample
to config.py
and add your username and password to the file before running the samples.
Generates an ics-file of upcoming events.
Generates a json-file for each group you are a member of.
Generates a csv-file for each event between from_date
and to_date
with attendance status of all organizers. The optional parameter -a
also includes all members that has been invited.