title: How can I get the duration of Youtube video with python?
body: <p>How can I get the duration of Youtube video? I am trying with this...</p>
  
  <pre><code>import gdata.youtube
  import gdata.youtube.service
  
  yt_service = gdata.youtube.service.YouTubeService()
  entry = yt_service.GetYouTubeVideoEntry(video_id='the0KZLEacs')
  
  print 'Video title: %s' % entry.media.title.text
  print 'Video duration: %s' % entry.media.duration.seconds
  </code></pre>
  
  <p>Console response</p>
  
  <pre><code>Traceback (most recent call last):
    File "/Users/LearningAnalytics/Dropbox/testing/youtube.py", line 8, in &lt;module&gt;
      entry = yt_service.GetYouTubeVideoEntry(video_id='the0KZLEacs')
    File "/Library/Python/2.7/site-packages/gdata/youtube/service.py", line 210, in GetYouTubeVideoEntry
      return self.Get(uri, converter=gdata.youtube.YouTubeVideoEntryFromString)
    File "/Library/Python/2.7/site-packages/gdata/service.py", line 1107, in Get
      'reason': server_response.reason, 'body': result_body}
  gdata.service.RequestError: {'status': 410, 'body': 'No longer available', 'reason': 'Gone'}
  </code></pre>