def set_text(self): if not self.text and self.url: a = Article(self.url) a.download() a.parse() a.lower() self.text = a.text