Rename BaseBrowser to Browser
This commit is contained in:
parent
444d36eee8
commit
0088013ae1
132 changed files with 348 additions and 348 deletions
|
|
@ -18,7 +18,7 @@
|
|||
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
from weboob.tools.browser import BaseBrowser, BrowserBanned
|
||||
from weboob.tools.browser import Browser, BrowserBanned
|
||||
from weboob.tools.date import datetime
|
||||
from weboob.tools.parsers.jsonparser import json
|
||||
import lxml.html
|
||||
|
|
@ -28,14 +28,14 @@ import time
|
|||
__all__ = ['MailinatorBrowser']
|
||||
|
||||
|
||||
class MailinatorBrowser(BaseBrowser):
|
||||
class MailinatorBrowser(Browser):
|
||||
PROTOCOL = 'http'
|
||||
DOMAIN = 'mailinator.com'
|
||||
ENCODING = 'utf-8'
|
||||
|
||||
def __init__(self, *args, **kw):
|
||||
kw['parser'] = 'raw'
|
||||
BaseBrowser.__init__(self, *args, **kw)
|
||||
Browser.__init__(self, *args, **kw)
|
||||
|
||||
def _get_unicode(self, url):
|
||||
return self.get_document(self.openurl(url)).decode(self.ENCODING, 'replace')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue