Example #1
0
    def findArticle(href):
        domain_article = None
        
        db_nodes = self.articles.get(DomainArticle.UNIQUE_ID, href)
        if len(db_nodes) > 0:
            props = db_nodes[0].get_properties()
            domain_article = DomainArticle()
            domain_article.href = props['href']
            domain_article.source = props['source']
            domain_article.stripped_content = props['stripped_content']

        return domain_article
Example #2
0
 def __init__(self, source, href):
     DomainArticle.__init__(self)
     
     self.source = source
     self.href = href