Skip to content

Commit

Permalink
Create group_search.py
Browse files Browse the repository at this point in the history
  • Loading branch information
FrostX-Official authored Mar 2, 2023
1 parent 8153ce7 commit 681cc55
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions examples/group_search.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
"""
Searches for groups which have a keyword in their name.
"""

import asyncio
from roblox import Client
client = Client()

async def main():
users = client.groups_search("Roblox", max_items=10)

async for user in users:
print("ID:", group.id)
print("\tName:", group.name)

asyncio.get_event_loop().run_until_complete(main())

0 comments on commit 681cc55

Please sign in to comment.