mirror of https://github.com/CIRCL/lookyloo
fix: Strip tabs/spaces around URL
parent
43de086628
commit
c97537fbe9
|
@ -183,6 +183,7 @@ class Lookyloo():
|
|||
|
||||
def scrape(self, url: str, cookies_pseudofile: Optional[BufferedIOBase]=None, depth: int=1, listing: bool=True, user_agent: Optional[str]=None, perma_uuid: str=None,
|
||||
os: str=None, browser: str=None) -> Union[bool, str]:
|
||||
url = url.strip()
|
||||
url = refang(url)
|
||||
if not url.startswith('http'):
|
||||
url = f'http://{url}'
|
||||
|
|
Loading…
Reference in New Issue