Unofficial python3 API wrapper to get information about the listen.moe live stream using aiohttp.
pip install listenmoe
pip install git+https://github.com/Zenrac/listenmoe
- Python3+
- aiohttp
- asyncio
Handler to get the current song forever
import listenmoe
import asyncio
async def hand(self, msg):
if msg.type == listen.message.SONG_INFO:
self.now = msg
else:
self.now = msg.raw
moe = listenmoe.client.Client(loop=Optional, aiosession=OptionalToo)
moe.register_handler(self.hand)
asyncio.ensure_future(moe.start())
To get kpop updates, use kpop=True
in Client.
listen.client.Client(loop=Optional, aiosession=OptionalToo, kpop=True)
This project is licensed under the MIT License - see the LICENSE file for details