GithubHelp home page GithubHelp logo

colaborati / billboard_yt_playlist_creator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aag/billboard_yt_playlist_creator

0.0 2.0 0.0 183 KB

A Python script to create YouTube playlists of the current Billboard charts.

License: GNU Lesser General Public License v3.0

Python 100.00%

billboard_yt_playlist_creator's Introduction

Create YouTube Playlists of Music Charts

License

This is a Python script that will download some of the current Billboard charts and create YouTube playlists containing videos for all the songs for the charts. If it is run regularly, it will create new playlists each week for the current Billboard charts.

When run, the script downloads the current charts from RSS feeds on the Billboard website. For each chart, it searches YouTube for a video of each song and adds the first result to a dated playlist of the chart for the current week.

The script creates playlists for these charts:

  • Hot 100
  • Pop
  • Dance/Club Play
  • R&B/Hip-Hop
  • Rock

An example of what the script creates can be seen here:

http://www.youtube.com/user/GimmeThatHotPopMusic

Dependencies

Usage

  1. Clone the git repository.

  2. Install the Python dependencies. If you have pip installed, you can use these commands:

    $ sudo pip install --upgrade google-api-python-client
    $ sudo pip install --upgrade feedparser
  3. Generate a new Installed Application Client ID and download the JSON key from the Credentials page of your Google Developer Console. Click the "Create a new Client ID" under OAuth and choose "Installed application" and "Other" in the dialog box that appears. You will have to enter some information about your application. Once the Client ID has been generated, click the "Download JSON" button and save the file with the name client_secrets.json in the root directory of your clone of the git repository.

  4. Generate a Public API access key by clicking the "Create new Key" button.

  5. Copy settings-example.cfg to settings.cfg and fill in your Public API access key. Then run:

    $ python createbillboardplaylist.py --noauth_local_webserver
  6. The first time you run the script, you will have to authenticate the application in a web browser. Open the URL that the script outputs, approve the application for the YouTube Account in which you want to create the playlists, and enter the verification code on the command line. This will create a file, oauth2.json, which must be kept in the root of the git repository as long as you want to upload playlists to this account.

  7. In subsequent runs of the script, you can run it without any command line arguments:

    $ python createbillboardplaylist.py

License

This code is free software licensed under the GPL 3. See the LICENSE.md file for details.

billboard_yt_playlist_creator's People

Contributors

aag avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.