Fixed missing "self"

This commit is contained in:
2025-08-15 19:30:33 +02:00
parent 081efaeb9f
commit 6dddf7985c

View File

@ -61,10 +61,10 @@ class Scraper:
return self._get(method, url, body=body)
def head(self, url: str, retry: bool = True, body: bool = True):
return request("HEAD", url, retry=retry, body=body)
return self.request("HEAD", url, retry=retry, body=body)
def get(self, url: str, retry: bool = True, body: bool = True):
return request("GET", url, retry=retry, body=body)
return self.request("GET", url, retry=retry, body=body)
def get_html(self, url: str, retry: bool = True) -> BeautifulSoup:
return bs4(self.get(url=url, retry=retry, body=True))