Look up the BrowserProfile for a given impersonate string.
(self, browser_impersonate: str | None)
| 160 | "params": params, |
| 161 | "timeout": self.settings.request_timeout_seconds, |
| 162 | "allow_redirects": True, |
| 163 | "impersonate": (browser_impersonate or self.settings.browser_impersonate), |
| 164 | } |
| 165 | if json_body is not None: |
| 166 | kwargs["json"] = json_body |
| 167 | if form_body is not None: |
| 168 | kwargs["data"] = form_body |
| 169 | if proxy_url: |
| 170 | kwargs["proxies"] = {"http": proxy_url, "https": proxy_url} |
no test coverage detected