browser: Add an absurl method to Page
This commit is contained in:
parent
19de93fe52
commit
677cc18524
1 changed files with 6 additions and 0 deletions
|
|
@ -203,6 +203,12 @@ class Page(object):
|
||||||
"""
|
"""
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
def absurl(self, url):
|
||||||
|
"""
|
||||||
|
Get an absolute URL from an a partial URL, relative to the Page URL
|
||||||
|
"""
|
||||||
|
return urlparse.urljoin(self.url, url)
|
||||||
|
|
||||||
|
|
||||||
class FormNotFound(Exception):
|
class FormNotFound(Exception):
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue