[GH-ISSUE #943] categories of podcast #565

Closed
opened 2026-02-27 23:23:24 +03:00 by kerem · 2 comments
Owner

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.

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.
kerem 2026-02-27 23:23:24 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@stephanebruckert commented on GitHub (Mar 13, 2023):

@lynabenyahia what did you find?

<!-- gh-comment-id:1466528127 --> @stephanebruckert commented on GitHub (Mar 13, 2023): @lynabenyahia what did you find?
Author
Owner

@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

<!-- gh-comment-id:1466538647 --> @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
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/spotipy#565
No description provided.