mirror of
https://github.com/kennethreitz/requests-html.git
synced 2026-06-05 23:00:20 +00:00
+1
-2
@@ -157,7 +157,7 @@ class BaseParser:
|
||||
# Support for <base> tag.
|
||||
base = self.find('base', first=True)
|
||||
if base:
|
||||
return base.attrs['href']
|
||||
return base.attrs['href'].strip()
|
||||
|
||||
else:
|
||||
url = '/'.join(self.url.split('/')[:-1])
|
||||
@@ -219,7 +219,6 @@ def user_agent(style=None):
|
||||
return useragent[style]
|
||||
|
||||
|
||||
|
||||
class Session(requests.Session):
|
||||
"""A consumable session, for cookie persistience and connection pooling,
|
||||
amongst other things.
|
||||
|
||||
Reference in New Issue
Block a user