GithubHelp home page GithubHelp logo

xtrombone / billboard-top-100-gem Goto Github PK

View Code? Open in Web Editor NEW

This project forked from darthbatman/billboard-top-100-gem

1.0 0.0 0.0 15 KB

:chart_with_upwards_trend: Ruby gem to retrieve top 100 songs from Billboard's "The Hot 100"

License: MIT License

Ruby 100.00%

billboard-top-100-gem's Introduction

billboard-top-100-gem

Ruby gem to retrieve top 100 songs from Billboard's "The Hot 100"

install

gem install billboard-top-100

example

require 'billboard-top-100'

billboard = BillboardTop100.new()

# date format YYYY-MM-DD (defaults to saturday of current week)

tracks = billboard.getTop100("2016-11-12")
tracks.each do |track|
	puts track.title.to_s
	puts track.artist.to_s
	puts track.rank.to_s
	puts track.cover.to_s
	puts "\n"
end

artists = billboard.getArtist100("2016-11-12")
artists.each do |artist|
	puts artist.name.to_s
	puts artist.rank.to_s
	puts artist.image.to_s
	puts "\n"
end

albums = billboard.getBillboard200("2016-11-12")
albums.each do |album|
	puts album.title.to_s
	puts album.artist.to_s
	puts album.rank.to_s
	puts album.image.to_s
	puts "\n"
end

api

tracks

Type: array

Track objects.

trackObject.rank

Type: number

Rank of song on charts.

trackObject.title

Type: string

Title of song.

trackObject.artist

Type: string

Name of artist of song.

trackObject.cover

Type: object

Cover image URL of song.

artists

Type: array

Artist objects.

artistObject.rank

Type: number

Rank of artist on charts.

artistObject.name

Type: string

Name of artist.

artistObject.image

Type: object

Image URL of artist.

albumObject.title

Type: string

Title of album.

albumObject.artist

Type: string

Name of artist.

albumObject.rank

Type: number

Rank of album on charts.

albumObject.image

Type: object

Image URL of album.

license

MIT © Rishi Masand

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.