Coder Social home page Coder Social logo

woyager's People

Contributors

alandong1234 avatar alandong2001 avatar lapernum avatar wzhao8 avatar zychang2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

zychang2

woyager's Issues

Last.fm api issues

  1. get_artist_name(): Dependent on get_top_tracks(), get_recent_tracks(). Sometimes, these two functions return empty string for artist_id. This will cause invalid parameters error when calling get_artist_name(). Solved this by adding artist_name.
  2. get_track_tags(): Sometimes, the combination of track and artist does not exist in the database, so no tags will be returned. Need to handle this error. (Also Error 6) (Example: https://ws.audioscrobbler.com/2.0/?method=track.gettoptags&artist=PJ%20&%20Duncan&track=Let%27s%20get%20ready%20to%20Rhumble&api_key=601524a20a9294b649dd49561f64bd53&format=json) Solved by error handling

TODO: database_api functions

database.get_artist_top_tags: 输入artist id返回tags
database.get_track_top_tags: 输入track id返回tags
database.get_track_with_tags: 输入list(tags_id) (size: 3-4),返回包括这些tags的track
databse.get_artist_from_track: 输入track_id,返回artist_id
database.get_tag_id: 输入list(tag_name),返回list(tag_id)

Normalize tags

Use normalizeTag in utils.py to normalize tags when constructing artist_tag and track_tag table.

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.