Giter Site home page Giter Site logo

genius-trending's Introduction

genius_trending.py

genius_trending.py is a Python API for downloading the top 10 trending songs from Genius.com.

Installation

You can install genius_trending.py with pip by executing the following (it's a - not a _ when installing):

pip install genius-trending.py 

Quickstart

To download the trending songs on Genius, we need to construct a GeniusData object.

>>> import genius_trending as genius
>>> trending = genius.GeniusData()

Now, let's take a look at what information is available in each SongEntry!

>>> song = trending[0]
>>> print(song.title)
This is America
>>> print(song.artist)
Childish Gambino
>>> print(song.rank)
1

We even have the option of printing the entire trending songs chart!

>>> print(trending)
Top 10 songs on Genius as of 10:00PM on May 20, 2018
----------------------------------------------------
1. This is America by Childish Gambino
2. Fake Love by BTS
3. Yes Indeed by Lil Baby & Drake
#...

Contributing

Feel free to submit a pull requests! If you found a bug or would like to request something else, create an issue here.

Dependencies

License

  • This project is licensed under the MIT License.
  • The Genius trending information is owned by Genius Media Group Inc. See Genius.com's Terms of Use for more information.

genius-trending's People

Contributors

kennyrozario avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

amulmgr

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.