Giter Site home page Giter Site logo

potatoe88888 / imdb_last.fm_soundtrack_exploration Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 50 KB

from a movie title, sound track artists are given to last.fm similarArtist algo to give YouTube urls

License: GNU General Public License v3.0

Python 100.00%

imdb_last.fm_soundtrack_exploration's Introduction

imdb_last.fm_soundtrack_exploration

from a movie title, sound track artists are given to last.fm similarArtist algo to give YouTube urls, example output is found within the files.

important note

This program will be working while in the terminal, it take a decent amount of time to process, will need to look into why, or maybe figure out how to lower the time of processing, added use of SoupStrainer, however the Youtube links gathering takes time, go get a coffee!

Python libraries needed

requests, json, bs4, imdb

set up -- create last.fm API account

  1. Go to last.fm site and fill out information for generating an API key, Create_API_account. You don't really need to place a callback URL or an application homepage -- did not utilize features that required these things.
  2. Next screen, assumed everything checked out okay by last.fm, the 'API key' and 'Shared secret' will be given.
  3. Place your 'API key' within the prototype.py, line begins with API_KEY= '', fill between the ' '. Place the 'Registered to' name as the USER_AGENT = '', fill between the ' '.
  4. Save, you are ready to explore!

running

  1. THIS IS STILL A WORK-IN-PROCESS-PROGRAM.
  2. Navigate to your directory which will hold this repository through terminal of choice.
  3. Depending on your python PATH variable set up, you could be using 'python' or 'python3', figure this out before proceeding the user could also house another variable other than these for python running more info? check out Source 1 and Source 2. Run (prototype.py).
$python imdb_soundtrack_last.fm_exploration.py

--or --

$python3 imdb_soundtrack_last.fm_exploration.py
  1. You will be prompted to enter a movie name.
Please enter a movie name //
  1. Program will output at max 20 choices to pick from which are similar to the given movie name (if there is not a closely related movie title to given, the program will give an error message and prompt the user to enter a movie title again).
  2. You will be prompted to enter a choice number.
Enter CHOICE # as multiple movies with this title have been found //
  1. Program will present the user with an imdb link to soundtrack listsing and an array of the soundtrack artists (duplicates will not be within this array).
  2. Processing with the prototype.py functions will begin for each artist.
  3. The program will output for each of the artsist within the soudtrack listing:
    • array of similar artists (current limit is 20 artists)
    • dictionary of YouTube urls of top tracks per similar artist (current limit is 5 tracks)

sources

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.