Aligning call signatures #325

pull/331/head
dgtlmoon 3 years ago
parent dfcae4ee64
commit d602cf4646

@ -23,7 +23,7 @@ class Fetcher():
return self.error return self.error
@abstractmethod @abstractmethod
def run(self, url, timeout, request_headers): def run(self, url, timeout, request_headers, request_body, request_method):
# Should set self.error, self.status_code and self.content # Should set self.error, self.status_code and self.content
pass pass
@ -87,7 +87,9 @@ class html_webdriver(Fetcher):
if proxy_args: if proxy_args:
self.proxy = SeleniumProxy(raw=proxy_args) self.proxy = SeleniumProxy(raw=proxy_args)
def run(self, url, timeout, request_headers): def run(self, url, timeout, request_headers, request_body, request_method):
# request_body, request_method unused for now, until some magic in the future happens.
# check env for WEBDRIVER_URL # check env for WEBDRIVER_URL
driver = webdriver.Remote( driver = webdriver.Remote(

Loading…
Cancel
Save