From 51dc26d113339e55af9867d7b38d20da68e57a48 Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 11 Sep 2019 17:53:37 +0100 Subject: [PATCH] add `proxy` to Request objects --- src/utils/http.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/http.py b/src/utils/http.py index 4dfb450d..aa18747b 100644 --- a/src/utils/http.py +++ b/src/utils/http.py @@ -62,7 +62,7 @@ class Request(object): detect_encoding: bool=True, parser: str="lxml", fallback_encoding="iso-8859-1", - content_type: str=None, + content_type: str=None, proxy: str=None, **kwargs): self.set_url(url) @@ -80,6 +80,7 @@ class Request(object): self.parser = parser self.fallback_encoding = fallback_encoding self.content_type = content_type + self.proxy = proxy if kwargs: if method == "POST":