I am using the python requests library to download data from a web server e.g:
import requests
fname = 'guppy-0.1.10.tar.gz'
url = 'https://pypi.python.org/packages/source/g/guppy/' + fname
r = requests.get(url)
open(fname, 'wb').write(r.content)
Which is working as expected.
But I am needing to download data (and save) from a web server that is continuously streaming data.
So is there a callback function that I can use with the requests api that lets me do this?