Spotify OAuth: Automating Discover Weekly Playlist - Full Tutorial

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

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

  • @clarity3208
    @clarity3208 Год назад +8

    hey at 9:07 , really did not get information about Redirect URI and how did you move to next step
    so i was unable to create my own dashboard is there a some kind of problem in there? or what to fill in Redirect URI?

    • @synsation
      @synsation  Год назад +12

      I just realized that that clip got cut off! So at 9:07 you can just set a placeholder for the redirectURI when first creating the app in the dashboard. For example, that placeholder value can just be "/". Later in the video, I go back and replace that value with the location of my server address, once the app is up and running . So, for example if following the video, you would set the redirect value to 127.0.0.1/redirect. This is where the Flask server is running in our example. However, if you end up hosting this app, it would be the address the app is hosted at :) Hope that clarifies things for you!

    • @clarity3208
      @clarity3208 Год назад

      @@synsation this was very helpful,
      does this error [ Illegal redirect_uri] occurred to you coz i simply copied entire code from your git hub reposit and pasted it on my PyCharm it throws this error on web page.

    • @katzmatt2
      @katzmatt2 Год назад

      @@synsation thanks for the reply, can you pin this comment at the top?

    • @synsation
      @synsation  Год назад +1

      @@clarity3208 No I have not seen the illegal redirect_uri error. I would double check your dashboard and make sure that the URI in the dashboard matches the location of your web server. And make sure your web app is running.

    • @clarity3208
      @clarity3208 Год назад +1

      @@synsation I didn't go into much detail but i found that if we didn't use underscore as in (_external=True ) inside this [ create_spotify_oauth()] function it throws error
      like illegal redirect_uri in web page.
      so finally completed Spotify OAuth 😊😇
      thanks☺

  • @laxlyfters8695
    @laxlyfters8695 Год назад +7

    Spotify needs you as a developer advocate. I think tutorials like these are great to know how to use a API and particular orgs tech. This type of content can get more developers using this tech and the more who build the better and creative solutions you see out there. This is a great idea for any dev looking for a job take a company like twilio for example you can choose one of many of there api and create a tutorial on how to use it and explain and create documentation for it. Thank you for this awesome video!!!

    • @synsation
      @synsation  Год назад +1

      Thanks! I have always enjoyed the aspects of teaching things, and lots of times documentation for these types of APIs are not very straightforward. I've considered a role as a dev advocate in the past and at some point was actually interviewing for a role as a dev advocate so maybe some day!

  • @lakshmi9692
    @lakshmi9692 Год назад +8

    Great job to breaking down step-by-step the process of creating personalized music experience. It's great to see how coding can be applied to real-world applications. Thank you for sharing this tutorial and helping beginners like me take our coding skills to the next level!

    • @synsation
      @synsation  Год назад +1

      Thank you for your positive feedback! I'm glad to hear that the tutorial was helpful for you. Keep coding and exploring new possibilities with the API!

  • @thomasannegilligan6250
    @thomasannegilligan6250 Год назад +5

    Well. The only Python I knew about (worthy of a script) had a prefix call Monty.
    In those days it was all about “data entry” which involved hiring typists to look at something and type it in only a QUERTY board.
    This young lady seems pretty smart and I like her voice which allows me to drift into sleep since all the jargon is not in my mental a space. She also has a Dad who is almost as smart as she is.

    • @synsation
      @synsation  Год назад +1

      I have also heard of monty python :D Thanks for your support!

  • @iamguyfawkes1474
    @iamguyfawkes1474 Год назад +5

    Very well explained tutorial, please make more of these !! 🥺❤

    • @synsation
      @synsation  Год назад +2

      Thank you for your feedback! I'm glad you found the tutorial helpful. I'll definitely consider creating more content like this in the future. Stay tuned!

    • @iamguyfawkes1474
      @iamguyfawkes1474 Год назад

      @@synsation ❤❤

    • @Error698
      @Error698 Год назад

      Bro, I need help. Do you think that you can help me?

  • @disi3z
    @disi3z Месяц назад

    THANKS! Creating oauth is so tricky actually

  • @studiowebselect
    @studiowebselect Год назад +5

    Put your scrip in a aws lambda function behind an api gateway and a EventBridge trigger weekly and its all be automated for free.

    • @synsation
      @synsation  Год назад +1

      Thanks for the suggestion! I'll definitely consider using AWS Lambda and EventBridge for future automation.

  • @AmoghSrivastava
    @AmoghSrivastava Год назад

    Here from your instagram! Love the tiny details and editing you do in the tutorial. Def recommending in my circles 🙌

    • @synsation
      @synsation  Год назад

      Thank you so much for your support and for recommending my tutorial to your circles! I'm glad you enjoyed the tiny details and editing, and I appreciate you taking the time to share your feedback.

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

    I was searching for something like this, that builds a log in with flask!
    Such a great way of explaining and going through the process step by step!
    Thanks:)

  • @siletro
    @siletro Год назад +2

    Thank you soo much! You did an amazing job explaining in simple terms. I was trying so hard to implement oauth but now i finally understood it

    • @synsation
      @synsation  Год назад +1

      You're welcome! I'm happy to hear that my explanation helped you understand OAuth better. Keep up the good work!

  • @QuandaleDingleBarnacleJonesIII
    @QuandaleDingleBarnacleJonesIII 10 месяцев назад +1

    I just finished the tutorial and this ish got me hyped. Thank you!

    • @synsation
      @synsation  8 месяцев назад

      Yay! I’m glad you liked it and it was motivating! It was a fun little project!

  • @tayliecarlson7830
    @tayliecarlson7830 Год назад

    This video is exactly what I was looking for!! Thank you for making this. You explained everything so well and now I can create my own app from the spotify api! Thank you!!

  • @renzeatzema5990
    @renzeatzema5990 Год назад +2

    Got here through your instagram, because this is something I definitely need in life! First world problems am I right
    Running into a problem tho, since the Discover Weekly wasn't in my library, the error message showed up.
    I thought simply placing it into my library would fix the problem, but re-running my code and refreshing the webpage, I still get the error. Any clue what's going on?
    Absolutely love the vibes and this new longer style content btw, keep it going!

    • @synsation
      @synsation  Год назад

      Maybe there's a chance that the Discover Weekly playlist hasn't been added to your profile. Even though the playlist is curated to you, it doesn't automatically add it. You can try to go to the Discover Weekly playlist on Spotify, click the three dots next to the playlist name and the click "Add to Profile". Then the Discover Weekly playlist should show up in the list of playlists pulled from the API request.
      You can also go to the Spotify API sandbox and check the request to see if it is returning that playlist in the list of items.

    • @renzeatzema5990
      @renzeatzema5990 Год назад

      Exactly that minor detail fixed it, you're the best!
      As I said, love the new longer style content, keep it going!

  • @Mau5trakt
    @Mau5trakt Год назад

    I only can say... THANK YOU this is really what i need it. i hope some day help with my knowledge as you.

  • @ominhquanho3860
    @ominhquanho3860 Год назад +1

    Is there anyway to wrap the code from redirect url using pure python script? Thank you so much

  • @Error698
    @Error698 Год назад +2

    Discover Weekly was not added to my spotify library when I completed my OAuth so it said (Discover Weekly not Found), but now I have added it to my library and now when I refresh that webpage it still says the same to me. Help Please

    • @synsation
      @synsation  Год назад

      Maybe there's a chance that the Discover Weekly playlist hasn't been added to your profile. Even though the playlist is curated to you, it doesn't automatically add it. You can try to go to the Discover Weekly playlist on Spotify, click the three dots next to the playlist name and the click "Add to Profile". Then the Discover Weekly playlist should show up in the list of playlists pulled from the API request.

    • @Error698
      @Error698 Год назад

      @@synsation I have added that playlist to my profile,still it shows the same error. Is there a place where I can share a screenshot and you may help me, because it means a lot and will help in my college project

    • @Error698
      @Error698 Год назад

      Hello! Please help me!

    • @swapnalidhotre8265
      @swapnalidhotre8265 Год назад

      @@Error698 I'm facing the same problem. The playlist is added to my profile but when I try to print the id of the playlist it shows none

    • @fabianmutke8061
      @fabianmutke8061 Год назад

      @@swapnalidhotre8265 also facing the same Problem and i cant solve it on my own, send help pls xD

  • @bananaboydan3642
    @bananaboydan3642 Год назад +1

    I dont see any console option when i login the dashboard so i cannot access a token, please help

  • @Frets49
    @Frets49 11 месяцев назад

    A beginner here, so how many times will this program work, as in does the saved weekly playlist get populated each week. And where in the code are we specifying when to perform all these actions.

  • @Brandonator24
    @Brandonator24 9 месяцев назад +1

    I'm having trouble getting my discover weekly to be found. If I print the playlists it fetches all my playlists show up EXCEPT that one. any ideas?

    • @synsation
      @synsation  8 месяцев назад

      You might have to go to the Discover weekly playlist and “Add it to Your Library”. There is a little + icon under the playlist name and once you add it, it should up in the list that comes from the API! Hopefully that helps :)

    • @Brandonator24
      @Brandonator24 8 месяцев назад

      @@synsation Unfortunately I tried that already and it still isn't showing.

  • @joyceleung7009
    @joyceleung7009 11 месяцев назад +1

    Hi, i wonder would this code would be triggered as long as new songs are added to the "Discover Weekly" playlist :)

    • @synsation
      @synsation  8 месяцев назад

      I didn’t know it in the video but you could set up that script to run every week with a Cronjob or put it inside a lambda function. Then you can set a time maybe the day before the Discover weekly playlist updates

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

    Amazing!

  • @Matthew-qh8df
    @Matthew-qh8df 11 месяцев назад

    Very cool thank you for sharing!

  • @TEQANIWEBAS
    @TEQANIWEBAS Год назад +2

    First 🥇❤❤❤

  • @patricktang3377
    @patricktang3377 11 месяцев назад

    I noticed that your SpotifyforDevelopers has six tabs, which are Discover, Docs., Console, Community, Dashboard, Use Cases. How come mine only has two tabs, Docs. and Community?

    • @AristotelianLogic
      @AristotelianLogic 11 месяцев назад +1

      Spotify updated the documentation interface since the video was recorded.

  • @TomoFromEarth
    @TomoFromEarth Год назад

    Yo! Where did you get that sick GitHub neon light? I need that in my life. 🤣🤣

  • @Boullii
    @Boullii Год назад

    would selenium not work for logging in???

  • @neeraj_gk
    @neeraj_gk Год назад

    where will i get my redirect uri ?????

  • @kamran1253
    @kamran1253 Год назад

    Thanks 😃😍

  • @FerJeff92
    @FerJeff92 11 месяцев назад

    i love you, thank you

  • @entertainmentonspot8747
    @entertainmentonspot8747 Год назад

    I don't think i could focus on this if you are the one who is explaining you are just too beautiful

  • @pranavpranavkul
    @pranavpranavkul Год назад

    a year ago you looked different, now you look healthy

  • @skydivenext
    @skydivenext Год назад

    when onlyfans?

  • @emilydoherty8037
    @emilydoherty8037 Год назад +2

    Hi, I am trying to follow your tutorial, and it worked great at first, but recently I am running into an error whenever I try to run the flask site, I am able to get to the login to spotify page but then it redirects me to a page that says:
    "SpotifyOauthError spotipy.oauth2.SpotifyOauthError: error: invalid_client, error_description: Invalid client "
    Please let me know if you have any ideas for fixing this! Thanks in advance
    EDIT: also this happened after I generated a new app and Client Secret and Client ID, so I'm thinking maybe that might have to do with it. I deleted the old pair because it accidentally got leaked.

  • @edgarbonilla372
    @edgarbonilla372 Год назад +6

    Came here just to express how grateful I am for all the effort you put on your content. Your vibe is on a whole another level, keep these coming! 🫶🏻

    • @synsation
      @synsation  Год назад +1

      Thank you so much for your kind words! I really appreciate your support and I'll definitely keep creating more content. Stay tuned!

  • @samraiblade
    @samraiblade Год назад +1

    I really like this video. I wanted to ask if there is a version that can be created for artists who are trying to match their music with the right audience without being spammy.
    I tried to create a version of your program (struggled). Tried using chaptgpt (stuggled). Was wondering if you do consulting or need me to email you. Really need the help. I'm a one person team😅

  • @crpdp
    @crpdp 10 месяцев назад

    Thanks Mam, It helped a lot with my project

  • @jacknicholson337
    @jacknicholson337 Год назад

    Why is app.secret_key never used?

  • @ViralKoko
    @ViralKoko Год назад

    amazing, I saw that you closed the tiktok channel and I searched on youtube, I talked to you on tiktok before, how can we get in touch? a wonderful day