cyberboysumanjay / JioSaavnAPI

An unofficial API for JioSaavn written in Python 3
https://saavnapi-nine.vercel.app
MIT License
363 stars 182 forks source link

JSON to command line instead of webpage #20

Closed dinesh0430 closed 4 years ago

dinesh0430 commented 4 years ago

Make no mistake, this is an excellent API

This API works perfectly well.

I am a python beginner. I just need some help in re-directing the json output to command line instead of webpage to use the output in some other script. Thanks for the wonderful API!!

priyansh-anand commented 4 years ago

You can always use curl, wget or any other library/tool to use this API from any other script. For example, first run this api and then execute this command in terminal:

curl 127.0.0.1:5000/song/?query=photograph

Then you will get result like this: Screenshot from 2020-10-13 19-55-23

And if you want to integrate this API (without using Flask) into your script, then you will have to do some changes in it.

dinesh0430 commented 4 years ago

Thanks for the fast reply!

This is what I needed!

And if you want to integrate this API (without using Flask) into your script, then you will have to do some changes in it.

But the above statement looks even more interesting.

But I am afraid integrating API (without Flask) is something out of my league right now!

If time permits I wish some of you guys could create API (without Flask). But that is something for future!

Anyway thanks for solving my query!

priyansh-anand commented 4 years ago

If time permits I wish some of you guys could create API (without Flask).

I have made those changes for my project, and made it an installable python module. If @cyberboysumanjay allows, then I can push those changes to a separate branch in this repository.

dinesh0430 commented 4 years ago

I have made those changes for my project, and made it an installable python module. If @cyberboysumanjay allows, then I can push those changes to a separate branch in this repository.

If you don't mind can you open a new repository fork in your account for the flask-less API ? That would be helpful to beginner folks like me.

priyansh-anand commented 4 years ago

https://github.com/priyansh-anand/JioSaavn-Python

You can get the python module from this repo

naveennamani commented 4 years ago

Thanks for the fast reply!

This is what I needed!

And if you want to integrate this API (without using Flask) into your script, then you will have to do some changes in it.

But the above statement looks even more interesting.

But I am afraid integrating API (without Flask) is something out of my league right now!

If time permits I wish some of you guys could create API (without Flask). But that is something for future!

Anyway thanks for solving my query!

Hi, I made an API using FastApi python library, and the library is very easy and intuitive for building faster APIs. Also it generates documentation for the APIs automatically using OpenAPI standard. This is my repository, have a look at it, thanks.

https://github.com/naveennamani/JioSaavnAPI

dinesh0430 commented 4 years ago

https://github.com/priyansh-anand/JioSaavn-Python

You can get the python module from this repo

Thanks for replying and making a git repository! I am gonna use this for a long time.