fix: expected format & passing proxy in _capture

pull/223/head
felalex 2021-06-25 16:36:57 +02:00
parent a04d224c79
commit 1c89a80c7e
2 changed files with 2 additions and 2 deletions

View File

@ -829,7 +829,7 @@ class Lookyloo():
def _capture(self, url: str, *, cookies_pseudofile: Optional[Union[BufferedIOBase, str]]=None,
depth: int=1, listing: bool=True, user_agent: Optional[str]=None,
referer: str='', perma_uuid: Optional[str]=None, os: Optional[str]=None,
referer: str='', proxy: str='', perma_uuid: Optional[str]=None, os: Optional[str]=None,
browser: Optional[str]=None, parent: Optional[str]=None) -> Union[bool, str]:
'''Launch a capture'''
url = url.strip()

View File

@ -70,7 +70,7 @@
<div class="form-group row">
<label for="proxy" class="col-sm-2 col-form-label">Proxy (Optional):</label>
<div class="col-sm-10">
<input type="text" class="form-control" name="proxy" id="proxy" placeholder="Pass a proxy (WIP)">
<input type="text" class="form-control" name="proxy" id="proxy" placeholder="Expected format: [scheme]://[username]:[password]@[hostname]:[port]">
</div>
</div>