# SpotifyUtil
SpotifyUtils is a very useful library made over Spotipy to automate some rather tiring tasks.
## Features
- Add songs to a playlist/album (creates one if name is provided instead of playlist url)
- Add songs to a playlist/album from a text file if it has the tracks' name and artist ("Name - Artist" format) in a newline separated way.
- Removes duplicates while adding songs if the flag is set to true.
- Creates a playlist out of your liked songs
- Create a playlist out of all the unavailable songs present in your playlist. Can also avoid unavailable songs while creating a new playlist.
## Usage
```python
from SpotifyUtil import SpotifyUtil
os.environ["SPOTIPY_CLIENT_ID"] = "Your Spotify Client ID"
os.environ["SPOTIPY_CLIENT_SECRET"] = "Your Spotify Client Secret"
os.environ["SPOTIPY_REDIRECT_URI"] = "Your Spotify Redirect URI"
sp = SpotifyUtil()
sp.add_liked_songs_to_playlist(name="Test Liked songs", limit=20)
```
or
```python
from SpotifyUtil import SpotifyUtil
sp = SpotifyUtil(
spotify_client_id="Your Spotify Client ID",
spotify_client_secret="Your Spotify Client Secret",
spotify_redirect_uri="Your Spotify Redirect URI"
)
sp.add_liked_songs_to_playlist(name="Test Liked songs", limit=20)
```
Raw data
{
"_id": null,
"home_page": "https://github.com/Arg0naut18/SpotifyUtil",
"name": "SpotifyUtil",
"maintainer": "",
"docs_url": null,
"requires_python": ">= 3.8",
"maintainer_email": "",
"keywords": "Spotify,Spotipy,SpotifyUtil,SpotifyUtils",
"author": "Arg0naut18",
"author_email": "Arg0naut18 <gaming.genos1729@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/fe/eb/516d42f95c975dbdbaf1f48f64d1fae982b7fe8b92a4081e5b43587171a3/SpotifyUtil-0.0.10.tar.gz",
"platform": null,
"description": "# SpotifyUtil\r\nSpotifyUtils is a very useful library made over Spotipy to automate some rather tiring tasks.\r\n\r\n## Features\r\n- Add songs to a playlist/album (creates one if name is provided instead of playlist url)\r\n- Add songs to a playlist/album from a text file if it has the tracks' name and artist (\"Name - Artist\" format) in a newline separated way.\r\n- Removes duplicates while adding songs if the flag is set to true.\r\n- Creates a playlist out of your liked songs\r\n- Create a playlist out of all the unavailable songs present in your playlist. Can also avoid unavailable songs while creating a new playlist.\r\n\r\n## Usage\r\n```python\r\nfrom SpotifyUtil import SpotifyUtil\r\n\r\nos.environ[\"SPOTIPY_CLIENT_ID\"] = \"Your Spotify Client ID\"\r\nos.environ[\"SPOTIPY_CLIENT_SECRET\"] = \"Your Spotify Client Secret\"\r\nos.environ[\"SPOTIPY_REDIRECT_URI\"] = \"Your Spotify Redirect URI\"\r\n\r\nsp = SpotifyUtil()\r\nsp.add_liked_songs_to_playlist(name=\"Test Liked songs\", limit=20)\r\n```\r\nor\r\n```python\r\nfrom SpotifyUtil import SpotifyUtil\r\n\r\n\r\nsp = SpotifyUtil(\r\n spotify_client_id=\"Your Spotify Client ID\",\r\n spotify_client_secret=\"Your Spotify Client Secret\",\r\n spotify_redirect_uri=\"Your Spotify Redirect URI\"\r\n )\r\n \r\nsp.add_liked_songs_to_playlist(name=\"Test Liked songs\", limit=20)\r\n```\r\n",
"bugtrack_url": null,
"license": "",
"summary": "SpotifyUtils is a very useful library made over Spotipy to automate some rather tiring tasks.",
"version": "0.0.10",
"project_urls": {
"Homepage": "https://github.com/Arg0naut18/SpotifyUtil"
},
"split_keywords": [
"spotify",
"spotipy",
"spotifyutil",
"spotifyutils"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "1f950addbc45fa330964cd32ece26b74cb601fe6fbff421ef73ce1ca70355230",
"md5": "8d00c63a9b53cbb879d8b2fcd9aa3735",
"sha256": "f493c0a131e0e0bf2584f58501b38df6e3cd4a58336af705d768e1fb9eea12e3"
},
"downloads": -1,
"filename": "SpotifyUtil-0.0.10-py3-none-any.whl",
"has_sig": false,
"md5_digest": "8d00c63a9b53cbb879d8b2fcd9aa3735",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">= 3.8",
"size": 20470,
"upload_time": "2023-08-21T19:11:49",
"upload_time_iso_8601": "2023-08-21T19:11:49.252015Z",
"url": "https://files.pythonhosted.org/packages/1f/95/0addbc45fa330964cd32ece26b74cb601fe6fbff421ef73ce1ca70355230/SpotifyUtil-0.0.10-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "feeb516d42f95c975dbdbaf1f48f64d1fae982b7fe8b92a4081e5b43587171a3",
"md5": "48503ef5d55b24eaea88f569c7565390",
"sha256": "cdffd924e1702ac86662adb341ced0ea14b3390bd1dbe0b6763e462de15cbedd"
},
"downloads": -1,
"filename": "SpotifyUtil-0.0.10.tar.gz",
"has_sig": false,
"md5_digest": "48503ef5d55b24eaea88f569c7565390",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">= 3.8",
"size": 20015,
"upload_time": "2023-08-21T19:11:51",
"upload_time_iso_8601": "2023-08-21T19:11:51.149228Z",
"url": "https://files.pythonhosted.org/packages/fe/eb/516d42f95c975dbdbaf1f48f64d1fae982b7fe8b92a4081e5b43587171a3/SpotifyUtil-0.0.10.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-08-21 19:11:51",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Arg0naut18",
"github_project": "SpotifyUtil",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "spotifyutil"
}