Added scraper.reset

This commit is contained in:
2025-08-09 02:25:50 +02:00
parent 8fa6e2cce4
commit 7ca4c4bfac

View File

@ -37,6 +37,9 @@ class Scraper:
def _retry_get(self, url: str, body: bool) -> bytes | Response:
return self._get(url, body=body)
def reset(self):
self._scraper = CloudScraper()
def get(self, url: str, retry: bool = True, body: bool = True):
if retry:
return self._retry_get(url, body=body)