@@ -109,15 +109,15 @@ def SingleProxy(self, http=None, https=None):
109109
110110 :param http: http proxy address
111111 :type http: string
112- :param https: https proxy adress
112+ :param https: https proxy address
113113 :type https: string
114114 :returns: whether or not the proxy was set up successfully
115115 :rtype: {bool}
116116
117117 :Example::
118118
119119 >>> pg = ProxyGenerator()
120- >>> success = pg.SingleProxy(http = <http proxy adress >, https = <https proxy adress >)
120+ >>> success = pg.SingleProxy(http = <http proxy address >, https = <https proxy address >)
121121 """
122122 self .logger .info ("Enabling proxies: http=%s https=%s" , http , https )
123123 proxy_works = self ._use_proxy (http = http , https = https )
@@ -162,7 +162,7 @@ def _check_proxy(self, proxies) -> bool:
162162 def _refresh_tor_id (self , tor_control_port : int , password : str ) -> bool :
163163 """Refreshes the id by using a new Tor node.
164164
165- :returns: Whether or not the refresh was succesful
165+ :returns: Whether or not the refresh was successful
166166 :rtype: {bool}
167167 """
168168 try :
@@ -434,7 +434,7 @@ def _handle_captcha2(self, url):
434434 self .logger .info ("Google thinks we are DOSing the captcha." )
435435 raise e
436436 except (WebDriverException ) as e :
437- self .logger .info ("Browser seems to be disfunctional - closed by user?" )
437+ self .logger .info ("Browser seems to be dysfunctional - closed by user?" )
438438 raise e
439439 except Exception as e :
440440 # TODO: This exception handler should eventually be removed when
@@ -500,7 +500,7 @@ def _close_session(self):
500500 self .logger .warning ("Could not close webdriver cleanly: %s" , e )
501501
502502 def _fp_coroutine (self , timeout = 1 , wait_time = 120 ):
503- """A coroutine to continuosly yield free proxies
503+ """A coroutine to continuously yield free proxies
504504
505505 It takes back the proxies that stopped working and marks it as dirty.
506506 """
0 commit comments