#! /usr/local/bin/python #-*- coding: utf-8 -*- # pyAggr3g470r - A Web based news aggregator. # Copyright (C) 2010 Cédric Bonhomme - http://cedricbonhomme.org/ # # For more information : http://bitbucket.org/cedricbonhomme/pyaggr3g470r/ # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see __author__ = "Cedric Bonhomme" __version__ = "$Revision: 0.1 $" __date__ = "$Date: 2010/12/02 $" __copyright__ = "Copyright (c) 2010 Cedric Bonhomme" __license__ = "GPLv3" from collections import OrderedDict class Feed(object): """ Represent a stream (RSS, ATOM, etc.). """ def __init__(self): """ """ self.feed_id = "" self.feed_image = ""#feed_image self.feed_title = ""#feed_title self.feed_link = ""#feed_link self.feed_site_link = ""#feed_site_link self.mail = ""#mail self.nb_articles = ""#nb_articles self.nb_unread_articles = ""#nb_unread_articles self.articles = OrderedDict()#articles_list class Article(object): """ Represent an article. """ def __init__(self): """ """ self.article_id = ""#article_id self.article_date = ""#article_date self.article_title = ""#article_title self.article_link = ""#article_link self.article_description = ""#article_description self.article_readed = ""#article_readed self.like = ""#like