mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 15:26:01 +03:00
[GH-ISSUE #82] Is there anyway i can make the search feature more quick? #63
Labels
No labels
a/b
bug
documentation
enhancement
good first issue
help wanted
invalid
pull-request
question
wontfix
yt-error
yt-update
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ytmusicapi#63
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
@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).
@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??
@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
@ajayd-san commented on GitHub (Sep 23, 2020):
nice, may i know how exactly you are getting details like artist and track name??
@sigma67 commented on GitHub (Sep 23, 2020):
See here:
github.com/sigma67/spotifyplaylist_to_gmusic@6bd5e6ec73/YouTube.py (L64-L76)And the docs: https://ytmusicapi.readthedocs.io/en/latest/reference.html#search
@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).
@sigma67 commented on GitHub (Sep 23, 2020):
Sure, make sure to check out CONTRIBUTING.rst