title: Extract only the latest one (by date) from a json/dict using Python
body: <p>I have the following dict <a href="http://uberlandia.com/papodebuteco/api/get_tag_posts/?tag_slug=uberlandiahome" rel="nofollow">http://uberlandia.com/papodebuteco/api/get_tag_posts/?tag_slug=uberlandiahome</a> and I would like to extract only the latest one by date. Using python. </p>
  
  <pre><code>def get_posts(self):
  r = requests.get('http://uberlandia.com/papodebuteco/api/get_tag_posts/?tag_slug=uberlandiahome',)
  if r.ok:
      data = json.loads(r.content.encode('UTF-8'))
      for post in data['posts']:
          print data['posts'] # If it was django I could do .latest(), but it's not.
          print "==================================================="
          title = post['title']
          url = u'%s' % post['url'] 
          print post['attachments'][0]['images']['full']['url']
          print url
          print u'%s'% post['date']
          #dict = {'featured_post' : {'title' : title, 'url':url}}
  else:pass
  </code></pre>
  
  <p>How can I return the latest post by date from this function?</p>