Spotify API Tutorial - Save Song Data (Easy Python Project)

Поделиться
HTML-код
  • Опубликовано: 22 окт 2024

Комментарии • 10

  • @imdadcodes
    @imdadcodes  7 месяцев назад

    📹MORE SPOTIFY API TUTORIALS: ruclips.net/video/2if5xSaZJlg/видео.html

  • @hissanbinzaheer7822
    @hissanbinzaheer7822 6 месяцев назад

    Helloo imdad . could you help on how to deploy these websites ? i am trying to deploy a website that asks user for their spotify authorization and stores it in mongodb but im running into a few errors . thanks

  • @xufeike383
    @xufeike383 6 месяцев назад

    Thank you, i like this video!

  • @FallenJakarta
    @FallenJakarta 3 месяца назад

    hai imdad, love your video! could you please share the code?

  • @ezenaguchinemerem4214
    @ezenaguchinemerem4214 5 месяцев назад

    Am special😅😊

  • @HotkeyGaming
    @HotkeyGaming 7 месяцев назад

    Hi Imdad,
    I've tried following your lovely tutorial, but when i run the program i get an error and not the expected input query :(
    Traceback (most recent call last):
    File ".\Spotify\main.py", line 15, in
    client_credentials_manager = SpotifyClientCredentials(
    ^^^^^^^^^^^^^^^^^^^^^^^^^
    File ".\Spotify\venv\Lib\site-packages\spotipy\oauth2.py", line 201, in __init__
    self.client_id = client_id
    ^^^^^^^^^^^^^^
    File ".\Spotify\venv\Lib\site-packages\spotipy\oauth2.py", line 94, in client_id
    self._client_id = _ensure_value(val, "client_id")
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File ".\Spotify\venv\Lib\site-packages\spotipy\oauth2.py", line 70, in _ensure_value
    raise SpotifyOauthError(msg)
    spotipy.oauth2.SpotifyOauthError: No client_id. Pass it or set a SPOTIPY_CLIENT_ID environment variable.

    • @imdadcodes
      @imdadcodes  7 месяцев назад

      Just to confirm, you created a .env file in the project directory and have values for CLIENT_ID and CLIENT_SECRET?

    • @HotkeyGaming
      @HotkeyGaming 7 месяцев назад

      @@imdadcodes yes indeed,
      export CLIENT_ID = "with id"
      export CLIENT_SECRET = "with secret"

    • @imdadcodes
      @imdadcodes  6 месяцев назад

      And you ran `source .env`?
      You can confirm by running echo $CLIENT_ID in the terminal and it should print out the client id..