mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-26 16:15:51 +03:00
[GH-ISSUE #943] categories of podcast #565
Labels
No labels
api-bug
bug
dependencies
documentation
duplicate
enhancement
external-ide
headless-mode
implicit-grant-flow
invalid
missing-endpoint
pr-welcome
private-api
pull-request
question
spotipy3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotipy#565
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 @lynabenyahia on GitHub (Feb 16, 2023).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/943
Hello everyone,
I am making a project on Python and I use spotipy.
I am looking for the way to have all of the podcast's categories. To give you an idea of what I want to code, here is a part of my code for the moment :
'results = sp.categories(limit=10)
categories = results['categories']['items']
print("What is you preferate podcast's category ?")
for i, category in enumerate(categories): #fonction "enumerate"
print(f"{i + 1}. {category['name']}")
category_index = int(input("Enter the number of your choice : "))'
The problem is that this code gives me the categories of music and not of podcast and I don't find anywhere the solution to have podcast categories.
Any idea please ?
Thank you for reading me.
@stephanebruckert commented on GitHub (Mar 13, 2023):
@lynabenyahia what did you find?
@lynabenyahia commented on GitHub (Mar 13, 2023):
I finally realized an interface in which I ask the user to enter the theme of his choice and then I propose him the results by using the search function and by sorting the results according to other criteria that he asked