I\'m using the following code to sample a stream of events (every 5 seconds) using the requests library
import requests import rx from rx import operators as