remove useless method
This commit is contained in:
parent
b8d101811e
commit
a85f63b401
2 changed files with 1 additions and 3 deletions
|
|
@ -34,4 +34,4 @@ class Newspaper20minutesBrowser(BaseBrowser):
|
|||
|
||||
def get_content(self, url):
|
||||
self.location(url)
|
||||
return self.page.get_content()
|
||||
return self.page.article
|
||||
|
|
|
|||
|
|
@ -40,5 +40,3 @@ class ArticlePage(BasePage):
|
|||
self.article.author = element_author.text_content().strip()
|
||||
self.article.body = self.browser.parser.tostring(element_body)
|
||||
|
||||
def get_content(self):
|
||||
return self.article
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue