Skip to content

Commit 896ee54

Browse files
committed
Pretty print list
1 parent 5379cbc commit 896ee54

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/search_youtube_music.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import asyncio
33
import aiohttp
44
import os
5+
from json import dumps
56

67

78
async def main(loop):
@@ -10,7 +11,7 @@ async def main(loop):
1011
client = YoutubeClient(session, yt_music_key=os.environ["YT_MUSIC_KEY"])
1112

1213
response = await client.search_music(q='black suit')
13-
print(response)
14+
print(dumps(response, indent=2))
1415

1516
await session.close()
1617

0 commit comments

Comments
 (0)