Fixed missing "self"
This commit is contained in:
@ -61,10 +61,10 @@ class Scraper:
|
|||||||
return self._get(method, url, body=body)
|
return self._get(method, url, body=body)
|
||||||
|
|
||||||
def head(self, url: str, retry: bool = True, body: bool = True):
|
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):
|
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:
|
def get_html(self, url: str, retry: bool = True) -> BeautifulSoup:
|
||||||
return bs4(self.get(url=url, retry=retry, body=True))
|
return bs4(self.get(url=url, retry=retry, body=True))
|
||||||
|
|||||||
Reference in New Issue
Block a user