title: Grabbing animated gif with python script
body: <p>I've been playing around with Pythonista on iOS to create some automation scripts.</p>
  
  <p>I have a problem where I'm trying to grab an animated gif from a remote url. I've come up with the following script.</p>
  
  <pre><code>import Image
  from urllib import urlopen
  from io import BytesIO
  
  url = "http://someurl.com/funny.gif"
  img = Image.open(BytesIO(urlopen(url).read()))
  </code></pre>
  
  <p>I get the image but it only appears to be the first frame of the gif? I'm guessing it has something to do with the BytesIO not reading in the whole file but I'm not sure?</p>
  
  <p>Hope I'm along the right lines.</p>