~bakrss.developers/bakrss/main

« back to all changes in this revision

Viewing changes to feedgtk.py

  • Committer: akus-py
  • Date: 2009-04-10 11:15:04 UTC
  • Revision ID: akus.py@gmail.com-20090410111504-cdldwwr0g5bw0z29
display site name now is ok

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
            diz = {}
86
86
            url=self.LoadURL()
87
87
            print "url in parser= ",url
88
 
            for sit in url:
 
88
            for sito in url.keys():
 
89
                    sit=url[sito]
 
90
                    print "sit= ",sit
89
91
                    d = feedparser.parse(sit)
90
92
                    for i in range(0,len(d['items'])):
91
93
                            tmp=[]
92
94
                            self.title = d['items'][i].title
 
95
                            #self.title=sito
93
96
                            self.news_url = d['items'][i].links[0]['href']
94
97
                            self.news_data = d['items'][i].updated [:-5]
95
98
                            self.news_data = self.news_data[:-5]
96
 
                            tmp.append(sit)
 
99
                            #tmp.append(sit)
 
100
                            tmp.append(sito)
97
101
                            tmp.append(self.news_data)
98
102
                            tmp.append(self.news_url)
99
103
                            diz[self.title] = tmp