Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
An unofficial Python3 wrapper for JioSaavn, a popular Indian music streaming service..
An unofficial Python3 wrapper for JioSaavn, a popular Indian music streaming service.. I am in no way affiliated with JioSaavn, use at your own risk.
To download jiosaavn-python, either fork this github repo or simply use Pypi via pip.
pip install jiosaavn-python
You can use the following code to get new releases from JioSaavn
. The below code shows the example using asyncio
but you can also use the following in the async function with the await
keyword. We are using limit=2
to limit the number of results returned.
import json
import asyncio
from jiosaavn import JioSaavn
saavn = JioSaavn()
data = asyncio.run(saavn.get_new_releases(page=1, limit=2))
print(json.dumps(data, indent=4))
You can use the following code to get song lyrics from JioSaavn
. You can pass Song ID/LINK
Below code shows the example using asyncio
but you can also use the following in the async function with await
keyword.
import json
import asyncio
from jiosaavn import JioSaavn
saavn = JioSaavn()
data = asyncio.run(saavn.get_song_lyrics("https://www.jiosaavn.com/song/srivalli/RBpGRidYdVI"))
print(json.dumps(data, indent=4))
You can use the following code to get song info from JioSaavn
. You can pass Song ID/LINK
Below code shows the example using asyncio
but you can also use the following in the async function with the await
keyword.
import json
import asyncio
from jiosaavn import JioSaavn
saavn = JioSaavn()
data = asyncio.run(saavn.get_song_details("https://www.jiosaavn.com/song/srivalli/RBpGRidYdVI"))
print(json.dumps(data, indent=4))
You can use the following code to get a song direct download from JioSaavn
. You can pass Song ID/LINK
Below code shows the example using asyncio
but you can also use the following in the async function with the await
keyword.
import json
import asyncio
from jiosaavn import JioSaavn
saavn = JioSaavn()
data = asyncio.run(saavn.get_song_direct_link("https://www.jiosaavn.com/song/srivalli/RBpGRidYdVI"))
print(json.dumps(data, indent=4))
You can use the following code to get featured playlists from JioSaavn
. You can pass Song ID/LINK
Below code shows the example using asyncio
but you can also use the following in the async function with the await
keyword. We are using limit=2
to limit the number of results returned.
import json
import asyncio
from jiosaavn import JioSaavn
saavn = JioSaavn()
data = asyncio.run(saavn.get_featured_playlists(page=1, limit=2))
print(json.dumps(data, indent=4))
You can use the following code to get playlist songs from JioSaavn
. You can pass Song ID/LINK
Below code shows the example using asyncio
but you can also use the following in the async function with the await
keyword. We are using limit=2
to limit the number of results returned
import json
import asyncio
from jiosaavn import JioSaavn
saavn = JioSaavn()
data = asyncio.run(saavn.get_playlist_songs("https://www.jiosaavn.com/featured/the-landers/2-aGcw5eLvQwkg5tVhI3fw__", page=1, limit=2))
print(json.dumps(data, indent=4))
You can use the following code to top charts from JioSaavn
. You can pass Song ID/LINK
Below code shows the example using asyncio
but you can also use the following in the async function with the await
keyword.
import json
import asyncio
from jiosaavn import JioSaavn
saavn = JioSaavn()
data = asyncio.run(saavn.get_top_charts())
print(json.dumps(data, indent=4))
You can use the following code to get top artists from JioSaavn
. You can pass Song ID/LINK
Below code shows the example using asyncio
but you can also use the following in the async function with the await
keyword.
import json
import asyncio
from jiosaavn import JioSaavn
saavn = JioSaavn()
data = asyncio.run(saavn.get_top_artists())
print(json.dumps(data, indent=4))
You can use the following code to get the artist's top songs from JioSaavn
. You can pass Song ID/LINK
Below code shows the example using asyncio
but you can also use the following in the async function with the await
keyword. We are using limit=2
to limit the number of results returned.
import json
import asyncio
from jiosaavn import JioSaavn
saavn = JioSaavn()
data = asyncio.run(saavn.get_artist_top_songs("https://www.jiosaavn.com/artist/allu-arjun-songs/BGi8EcKdZXk_", limit=2))
print(json.dumps(data, indent=4))
You can use the following code to search songs from JioSaavn
. You can pass Song ID/LINK
Below code shows the example using asyncio
but you can also use the following in the async function with the await
keyword.
import json
import asyncio
from jiosaavn import JioSaavn
saavn = JioSaavn()
data = asyncio.run(saavn.search_songs("Narayan mil jayega"))
print(json.dumps(data, indent=4))
You can use the following code to search albums from JioSaavn
. You can pass Song ID/LINK
Below code shows the example using asyncio
but you can also use the following in the async function with the await
keyword.
import json
import asyncio
from jiosaavn import JioSaavn
saavn = JioSaavn()
data = asyncio.run(saavn.search_albums("Narayan mil jayega"))
print(json.dumps(data, indent=4))
You can use the following code to search artists from JioSaavn
. You can pass Song ID/LINK
Below code shows the example using asyncio
but you can also use the following in the async function with the await
keyword.
import json
import asyncio
from jiosaavn import JioSaavn
saavn = JioSaavn()
data = asyncio.run(saavn.search_artists("Allu Arjun"))
print(json.dumps(data, indent=4))
You can use the following code to search playlists from JioSaavn
. You can pass Song ID/LINK
Below code shows the example using asyncio
but you can also use the following in the async function with the await
keyword.
import json
import asyncio
from jiosaavn import JioSaavn
saavn = JioSaavn()
data = asyncio.run(saavn.search_playlists("Krishna"))
print(json.dumps(data, indent=4))
You can use the following code to search podcasts from JioSaavn
. You can pass Song ID/LINK
Below code shows the example using asyncio
but you can also use the following in the async function with the await
keyword.
import json
import asyncio
from jiosaavn import JioSaavn
saavn = JioSaavn()
data = asyncio.run(saavn.search_podcasts("Krishan"))
print(json.dumps(data, indent=4))
You can use the following code to search top queries from JioSaavn
. You can pass Song ID/LINK
Below code shows the example using asyncio
but you can also use the following in the async function with the await
keyword.
import json
import asyncio
from jiosaavn import JioSaavn
saavn = JioSaavn()
data = asyncio.run(saavn.search_topquery("the landers"))
print(json.dumps(data, indent=4))
MIT License
Copyright (c) 2023 Abhishek Chaudhari
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
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.
FAQs
An unofficial Python3 wrapper for JioSaavn, a popular Indian music streaming service..
We found that jiosaavn-python 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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.