-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: option for requests using proxy
- Loading branch information
1 parent
5b244db
commit 52f9861
Showing
9 changed files
with
47 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
# python | ||
SSID = None | ||
check_websocket_if_connect = None | ||
ssl_Mutual_exclusion = False | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,27 @@ | ||
from typing import Union, Dict | ||
from quotexpy.http.qxbroker import Browser | ||
|
||
|
||
class Login(Browser): | ||
"""Class for Quotex login resource.""" | ||
|
||
url = "" | ||
cookies = None | ||
ssid = None | ||
cookies = None | ||
base_url = "qxbroker.com" | ||
https_base_url = f"https://{base_url}" | ||
|
||
async def __call__(self, email, password): | ||
"""Method to get Quotex API login http request. | ||
async def __call__(self, email, password, proxy: Union[Dict, None]=None): | ||
""" | ||
Method to get Quotex API login http request. | ||
:param str username: The username of a Quotex server. | ||
:param str password: The password of a Quotex server. | ||
:returns: The instance of :class:`playwright.cookies`. | ||
""" | ||
|
||
self.email = email | ||
self.password = password | ||
self.proxy = proxy | ||
|
||
self.ssid, self.cookies = await self.get_cookies_and_ssid() | ||
return self.ssid, self.cookies |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.