[GH-ISSUE #82] Is there anyway i can make the search feature more quick? #63

Closed
opened 2026-02-27 22:07:49 +03:00 by kerem · 7 comments
Owner

Originally created by @ajayd-san on GitHub (Sep 23, 2020).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/82

Hey, I'm using your module to get artist name and track name from youtube titles. So far its really good, works perfectly.But the problem is it just takes up a lot of time(around 1 sec for each title). So, if i have a playlist of 200 songs itll take around 200 seconds. So is there any way this can be done faster ?? I'm looking at multi threading as an option. Is there any other option?

Thanks

Originally created by @ajayd-san on GitHub (Sep 23, 2020). Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/82 Hey, I'm using your module to get artist name and track name from youtube titles. So far its really good, works perfectly.But the problem is it just takes up a lot of time(around 1 sec for each title). So, if i have a playlist of 200 songs itll take around 200 seconds. So is there any way this can be done faster ?? I'm looking at multi threading as an option. Is there any other option? Thanks
kerem closed this issue 2026-02-27 22:07:49 +03:00
Author
Owner

@sigma67 commented on GitHub (Sep 23, 2020):

The API is not that fast unfortunately. You can try parallelizing, but I don't think you should overdo it (might get flagged as abuse).

For reference, on the YouTube Data API (official way), the search feature is one of the most expensive operations with 100 points per search (max of 100 searches per day on default limit of 10000).

<!-- gh-comment-id:697277516 --> @sigma67 commented on GitHub (Sep 23, 2020): The API is not that fast unfortunately. You can try parallelizing, but I don't think you should overdo it (might get flagged as abuse). For reference, on the YouTube Data API (official way), the search feature is one of the most expensive operations with 100 points per search (max of 100 searches per day on default limit of 10000).
Author
Owner

@ajayd-san commented on GitHub (Sep 23, 2020):

thanks for reply, so you rely on the official api to get details on track names and artists??

<!-- gh-comment-id:697282399 --> @ajayd-san commented on GitHub (Sep 23, 2020): thanks for reply, so you rely on the official api to get details on track names and artists??
Author
Owner

@sigma67 commented on GitHub (Sep 23, 2020):

No, in my project https://github.com/sigma67/spotifyplaylist_to_gmusic I use ytmusicapi, precisely because 100 searches is not enough to transfer playlists. I developed ytmusicapi for this reason in the first place. It does take a few minutes to transfer playlists with a few hundred items

<!-- gh-comment-id:697283751 --> @sigma67 commented on GitHub (Sep 23, 2020): No, in my project https://github.com/sigma67/spotifyplaylist_to_gmusic I use ytmusicapi, precisely because 100 searches is not enough to transfer playlists. I developed ytmusicapi for this reason in the first place. It does take a few minutes to transfer playlists with a few hundred items
Author
Owner

@ajayd-san commented on GitHub (Sep 23, 2020):

nice, may i know how exactly you are getting details like artist and track name??

<!-- gh-comment-id:697288034 --> @ajayd-san commented on GitHub (Sep 23, 2020): nice, may i know how exactly you are getting details like artist and track name??
Author
Owner
<!-- gh-comment-id:697288673 --> @sigma67 commented on GitHub (Sep 23, 2020): See here: https://github.com/sigma67/spotifyplaylist_to_gmusic/blob/6bd5e6ec73ac2950b590dce4f706c1c2d61a7efb/YouTube.py#L64-L76 And the docs: https://ytmusicapi.readthedocs.io/en/latest/reference.html#search
Author
Owner

@ajayd-san commented on GitHub (Sep 23, 2020):

thanks for specifying. I like this repo a lot tbh. I plan on contributing asap(i'm still a beginner btw).

<!-- gh-comment-id:697292680 --> @ajayd-san commented on GitHub (Sep 23, 2020): thanks for specifying. I like this repo a lot tbh. I plan on contributing asap(i'm still a beginner btw).
Author
Owner

@sigma67 commented on GitHub (Sep 23, 2020):

Sure, make sure to check out CONTRIBUTING.rst

<!-- gh-comment-id:697322877 --> @sigma67 commented on GitHub (Sep 23, 2020): Sure, make sure to check out [CONTRIBUTING.rst](https://github.com/sigma67/ytmusicapi/blob/master/CONTRIBUTING.rst)
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#63
No description provided.