Skip to content

OpenSpotify is a fast and efficient reverse-engineered Spotify API, allowing unlimited access to Spotify's private API without the need for API keys. It provides access to all Spotify API routes, including private routes and data.

License

Notifications You must be signed in to change notification settings

anonyxbiz/OpenSpotify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenSpotify

OpenSpotify is a fast and efficient reverse-engineered Spotify API, allowing unlimited access to Spotify's private API without the need for API keys. It provides access to all Spotify API routes, including private routes and data.

Features

  • Access Private and Commercial Spotify API routes without API keys.
  • Retrieve private Spotify data.
  • Encrypted data handling for security.

Installation

To install OpenSpotify, use the following command:

pip install git+https://github.com/anonyxbiz/OpenSpotify

Environment Variables

Ensure you set the safe_key environment variable for encryption and decryption:

export safe_key=your_safe_key_here

Contact me to obtain the safe_key for this script to be functional. Most of the required variables are encrypted for obvious reasons.

Usage

Initialization

To initialize and use the OpenSpotify API, create an instance of the Spotify class:

from openspotify import Spotify

spotify = Spotify()

Retrieve Album Data

You can retrieve album data using the get_album_data method:

album_data = await spotify.get_album_data('spotify_album_uri')
print(album_data)

Logging

The logging functionality is provided by the Logging class. You can log data using the log_data method:

from openspotify import Logging

logger = Logging()
await logger.log_data('Your log message here')

Encryption and Decryption

To encrypt or decrypt data, use the Safe class:

from openspotify import Safe

safe = Safe()
encrypted_data = safe.tool('your_data_here', 'encrypt')
decrypted_data = safe.tool(encrypted_data, 'decrypt')

Classes and Methods

Route Class

  • get(url, headers={}, params={}, timeout=60): Sends a GET request.
  • post(url, headers={}, data={}, json={}, timeout=60): Sends a POST request.

Logging Class

  • log_data(data, do=None): Logs data to the console or exits the program if do='q'.

Safe Class

  • tool(og, action): Encrypts or decrypts data based on the action parameter.

Spotify Class

  • get_album_data(album_uri): Retrieves data for the specified album.

Simple Command-Line Usage Example

To run OpenSpotify from the command line and fetch album data:

python -m openspotify

You'll be prompted to enter a Spotify album URI:

album_uri:

Enter a Spotify album URI, and the data will be fetched and displayed.

Disclaimer

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Author

Anonyxbiz


Feel free to customize this README further to fit any additional details or requirements of your project.

About

OpenSpotify is a fast and efficient reverse-engineered Spotify API, allowing unlimited access to Spotify's private API without the need for API keys. It provides access to all Spotify API routes, including private routes and data.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages