Ejemplo n.º 1
0
 def getArticle(self):
     dict = self.getStoryAndMp3Url()
     story_list = dict['story']
     mp3_list = dict['mp3']
     for index in range(0, len(story_list)):
         url = story_list[index]
         patstory = PatStoryMethod()
         sc = patstory.getStorySC(url)
         content = patstory.getContent(sc)
         if content != '':
             title = 'MaritimePianist'
             print 1, title
             date = patstory.getDate(sc)
             print 2, date
             mp3_path = patstory.getMP3(mp3_list[index], index, 'MaritimePianist')
             print 3, mp3_path
             pic = "http://pic.kekenet.com/2012/0223/20120223034042496.jpg"
             pic_path = patstory.getPicture(sc, index, 'MaritimePianist', pic)
             print 4, pic_path
         print 5, content
Ejemplo n.º 2
0
 def getArticle(self):
     dict = self.getStoryAndMp3Url()
     story_list = dict['story']
     mp3_list = dict['mp3']
     for index in range(0, len(story_list)):
         url = story_list[index]
         patstory = PatStoryMethod()
         sc = patstory.getStorySC(url)
         content = patstory.getContent(sc)
         if content != '':
             title = 'MaritimePianist'
             print 1, title
             date = patstory.getDate(sc)
             print 2, date
             mp3_path = patstory.getMP3(mp3_list[index], index,
                                        'MaritimePianist')
             print 3, mp3_path
             pic = "http://pic.kekenet.com/2012/0223/20120223034042496.jpg"
             pic_path = patstory.getPicture(sc, index, 'MaritimePianist',
                                            pic)
             print 4, pic_path
         print 5, content