Added scraper.reset
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user