Skip to content

Find the playlists that contain a nice song on Youtube.

Notifications You must be signed in to change notification settings

christina-zhou-96/FindYoSongs

Repository files navigation

Find more songs like the one you like!

Try it out at https://findyosongs.herokuapp.com/

Notes

You're likely to only get a hit if these are relatively well known songs. This is because this only works if the playlists were indexed elsewhere on the web. That means, if someone posted it as in their own blog or Facebook. Sometimes, you'll click on the video and there is no playlist, I think the playlist went private in that case.


Resources

Local app

  1. Make a Flask app
    https://runestone.academy/runestone/books/published/thinkcspy/WebApps/07-InputForAFlaskWebApplication.html

  2. The idea
    This is a tip from user Ruben on stack overflow
    https://webapps.stackexchange.com/questions/44215/how-can-i-view-what-playlist-if-any-a-youtube-video-is-in

Deployment

  1. Overview to deploy with Heroku
    which sounds cuter and easier than Amazon or Google
    https://pythonhow.com/deploying-your-web-application-to-the-cloud/

  2. Generating a requirements file
    https://stackoverflow.com/questions/40192651/django-pip-freeze-results-in-empty-file

  3. The official Windows help
    Notice the special Windows procfile...
    https://devcenter.heroku.com/articles/getting-started-with-python#deploy-the-app

  4. Make a Procfile with Waitress
    https://books.google.com/books?id=cVlPDwAAQBAJ&pg=PT282&lpg=PT282&dq=%22waitress%22+procfile&source=bl&ots=xNJYeoYq9_&sig=ACfU3U1aUYxH6Zjxy5pi-jXDJdf4CZF_2w&hl=en&sa=X&ved=2ahUKEwioxOPcitzoAhWCl3IEHSGsAwoQ6AEwBnoECAkQKQ#v=onepage&q=%22waitress%22%20procfile&f=false
    If you're on Windows, you can't use gunicorn, which is what the tutorial wants you to use. (The tutorial does have an example Windows procfile, but that's only applicable for local use.)

Connect to Youtube

  1. Overview of steps to use Youtube API
    https://developers.google.com/youtube/v3/getting-started

  2. python Youtube connection
    https://github.com/youtube/api-samples/tree/master/python

  3. The data structure of a video
    https://developers.google.com/youtube/v3/docs/videos#resource

  4. Read text in python
    https://cmdlinetips.com/2018/01/how-to-read-entire-text-file-in-python/

Contributions

Mixes: Recently Youtube added "mixes", which are not playlists. Mixes, in case you don't know, are autogenerated Youtube slosh. Only you can view your own mixes, so if you land on a "mix" page, it just looks like there was no new content at all. For now, I tell users to ignore any search results with the word "mix" but it would be nice to programmatically ignore them.

About

Find the playlists that contain a nice song on Youtube.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages