Python Forum

Full Version: Pusher - import specific data
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want to get data from a website to use it in my code.
I always used the standard requests.get(URL) and .json method. I saw that the website is supporting websocket via pusher. That is something I don't really get. Of course the principle of websockets but not how to get data into python.

Current way : value = requests.get(URL)

what I want is : value = something I choose with pusher from that channel.

The website is https://www.bitstamp.net/api/

On the left u can choose between HTTP API and Websocket API.

I would be so glad if someone could help me with that topic.

Thanks!!!