Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
This package extends the already existing spotipy API client library with a randomized search functionallity. Both libraries are based on the official Spotify API.
This package can be installed through pip with the following command:
pip install spotipy-random
The spotipy package is also required and can be installed with:
pip install spotipy
To use this library first create a new spotipy client object including your personal Spotify API client_id and client_secret. Then the get_random
method can be used to search for random tracks, albums and more. You can also specify search filters, although some filter will not work with each search type (Check details in the Spotify API documentation).
from spotipy import Spotfiy
from spotipy-random import get_random
spotify_client = spotipy.Spotify(auth_manager=SpotifyClientCredentials(
client_id="YOUR_APP_CLIENT_ID",
client_secret="YOUR_APP_CLIENT_SECRET"))
random_pop_song_json: str = get_random(spotify: spotify_client, type="track", genre="pop")
The randomization works by selecting a random letter to search for and randomly picking one of the result elements. The number of results can be changed with the limit
parameter. The offset_min
and offset_max
parameters can optionally be used to influence the search result offset.
FAQs
Extends the spotipy API client with randomized search.
We found that spotipy-random demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.