Sunday, January 18, 2015

Downloading Files With Python's Requests Module

http://docs.python-requests.org/en/latest/user/quickstart/#binary-response-content

From the example:
>>> from PIL import Image
>>> from StringIO import StringIO
>>> i = Image.open(StringIO(r.content))

No comments:

Post a Comment