fix: Refang the URL at the right place

pull/69/head
Raphaël Vinot 2020-03-19 11:05:29 +01:00
parent 971877954e
commit 1fd48df470
1 changed files with 1 additions and 2 deletions

View File

@ -183,10 +183,9 @@ 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 = refang(url)
if not url.startswith('http'):
url = f'http://{url}'
else:
url = refang(url)
if self.only_global_lookups:
splitted_url = urlsplit(url)
if splitted_url.netloc: