from youtomb.explore.youtubeexplorer import YouTubeExplorer

class MostTodayExplorer(YouTubeExplorer):
      def __init__(self, timeout_sec=600):
            YouTubeExplorer.__init__(self, timeout_sec)

      def get_gdata(self,start):
            return self.gdata_request("http://gdata.youtube.com/feeds/api/"
                                      +"standardfeeds/most_viewed?time=%s"
                                      +"&start-index=%s&max-results=%s"
                                      +"&racy=include",
                                      ('today',
                                       str(start),
                                       '10'
                                       ))

      def get_name(self):
            return "MostTodayExplorer"

if __name__=="__main__":
      e = MostTodayExplorer()
      e.run()
