Skip to main content

a python api to collect data from genius.com using their API

Project description

Rapy_Genius

Rapy is a package that uses the Genius API to collect data from genius.com as songs, artists and lyrics

This framework has two modules: genius_api: Contains the GeniusApiManager class. data_managger: Contains the GeniusApiDatabaseManager class that uses MongoDB and pymongo to store data and use it

Visit https://docs.genius.com/ to get API client access.

Installation

Run the following to install

'''python

pip install rapy_genius

'''

Usage

'''python

from genius_api import GeniusApiManager
from data_manager import GeniusApiDatabaseManager
API_CLIENT_ACCESS_TOKEN = "XXXXXXXXX" #The Api client access token generated from https://docs.genius.com/
api_manager = GeniusApiManager(API_CLIENT_ACCESS_TOKEN)
db_manager = GeniusApiDatabaseManager(db_name='Genius_scrapper')
add_artist(45) #Eminem

'''

Developing Rapy Genius

to install rapy_genius along with the tools you need to develop and run tests

'''bash

pip install -e .[dev]

'''

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rapy_genius-0.0.4.tar.gz (9.8 kB view details)

Uploaded Source

File details

Details for the file rapy_genius-0.0.4.tar.gz.

File metadata

  • Download URL: rapy_genius-0.0.4.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.7.9

File hashes

Hashes for rapy_genius-0.0.4.tar.gz
Algorithm Hash digest
SHA256 5e2c359bc47d58fdc51193dd595a7d581b3a8ac919aef0fcbd12bf1299237552
MD5 236be94d92f04ac80c188ecd8c9ad8a4
BLAKE2b-256 b45719ae7e9c5fd63a55086d3f04636f82b1e3a9b6e177ebb8cad66eaae0c0ab

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page