[wgem] reading local suggestions

This commit is contained in:
Vinícius Moreira
2019-12-16 16:55:48 -03:00
parent f7f1f32eb3
commit 2cdd5b59f5
4 changed files with 230 additions and 37 deletions

View File

@@ -71,3 +71,8 @@ class HttpClient:
if size is not None:
return system.get_human_size_str(size)
def exists(self, url: str) -> bool:
res = self.session.get(url=url, allow_redirects=True, ignore_ssl=True)
return res.status_code == 200