add export_thread
add export_thread to boobmsg working show_thread
This commit is contained in:
parent
3c33a53a3b
commit
fe7b8d082c
3 changed files with 29 additions and 5 deletions
|
|
@ -33,5 +33,17 @@ class Newspaper20minutesBrowser(BaseBrowser):
|
|||
return False
|
||||
|
||||
def get_content(self, _id):
|
||||
self.location(id2url(_id))
|
||||
try :
|
||||
url = id2url(_id)
|
||||
except ValueError:
|
||||
url = _id
|
||||
try:
|
||||
self.location(url)
|
||||
except IndexError:
|
||||
if _id == '':
|
||||
raise ValueError("thread id is empty")
|
||||
else:
|
||||
raise
|
||||
except AttributeError:
|
||||
raise ValueError("cant go on url")
|
||||
return self.page.article
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue