[GH-ISSUE #230] Asynchronous requests #179

Closed
opened 2026-02-27 22:08:27 +03:00 by kerem · 1 comment
Owner

Originally created by @georgetian3 on GitHub (Oct 1, 2021).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/230

I've implemented (a very hacky) implementation of ytmusicapi using aiohttp, where performing 6 search queries decreased from 6 seconds without async, to 1 second with async.

The speed improvements are great, but I understand some users may not wish to use async in their programs. With this in mind, would you be open to implementing async in the main ytmusic repository? Furthermore, letting the user choose between synchronous and async requests be an option?

Originally created by @georgetian3 on GitHub (Oct 1, 2021). Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/230 I've implemented (a very hacky) implementation of ytmusicapi using `aiohttp`, where performing 6 search queries decreased from 6 seconds without async, to 1 second with async. The speed improvements are great, but I understand some users may not wish to use async in their programs. With this in mind, would you be open to implementing async in the main ytmusic repository? Furthermore, letting the user choose between synchronous and async requests be an option?
kerem closed this issue 2026-02-27 22:08:28 +03:00
Author
Owner

@sigma67 commented on GitHub (Oct 3, 2021):

This is similar to parallelizing requests, which is something I would prefer to avoid as it might draw unwanted attention from Google (high server load due to much larger amount of requests in a short time window). However, feel free to publish your fork and link it here

<!-- gh-comment-id:932932278 --> @sigma67 commented on GitHub (Oct 3, 2021): This is similar to parallelizing requests, which is something I would prefer to avoid as it might draw unwanted attention from Google (high server load due to much larger amount of requests in a short time window). However, feel free to publish your fork and link it here
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ytmusicapi#179
No description provided.