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.
- Access Private and Commercial Spotify API routes without API keys.
- Retrieve private Spotify data.
- Encrypted data handling for security.
To install OpenSpotify, use the following command:
pip install git+https://github.com/anonyxbiz/OpenSpotify
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.
To initialize and use the OpenSpotify
API, create an instance of the Spotify
class:
from openspotify import Spotify
spotify = Spotify()
You can retrieve album data using the get_album_data
method:
album_data = await spotify.get_album_data('spotify_album_uri')
print(album_data)
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')
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')
get(url, headers={}, params={}, timeout=60)
: Sends a GET request.post(url, headers={}, data={}, json={}, timeout=60)
: Sends a POST request.
log_data(data, do=None)
: Logs data to the console or exits the program ifdo='q'
.
tool(og, action)
: Encrypts or decrypts data based on theaction
parameter.
get_album_data(album_uri)
: Retrieves data for the specified album.
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.
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.
Anonyxbiz
Feel free to customize this README further to fit any additional details or requirements of your project.