1

I want to get info from API via Python, which has infinite info updating (it is live - for example live video or live monitoring). So I want to stop this GET request after interval (for example 1 second), then process these information and then repeat this cycle.

Any ideas? (now I am using requests module, but I do not know, how to stop receiving data and then get them)

Foreen
  • 369
  • 2
  • 17

1 Answers1

1

I might be off here, but if you hit an endpoint at a specific time, it should return the JSON at that particular moment. You could then store it and use it in whatever process you have created.

If you want to hit it again, you would just use requests to hit the endpoint.

A_Patterson
  • 389
  • 1
  • 8