diff --git a/py34/scraper.py b/py34/scraper.py index fc8bf2a..a0efc18 100644 --- a/py34/scraper.py +++ b/py34/scraper.py @@ -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))