used for a request the class method
This commit is contained in:
parent
4e4e72104d
commit
ac474c6079
@ -300,12 +300,10 @@ class EncyclopaediaMetallum(Page):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def fetch_artist_attributes(cls, artist: Artist, url: str) -> Artist:
|
def fetch_artist_attributes(cls, artist: Artist, url: str) -> Artist:
|
||||||
r = cls.API_SESSION.get(url)
|
r = cls.get_request(url)
|
||||||
if r.status_code != 200:
|
if r is None:
|
||||||
LOGGER.warning(f"code {r.status_code} at {url}")
|
|
||||||
return artist
|
return artist
|
||||||
|
soup: BeautifulSoup = cls.get_soup_from_response(r)
|
||||||
soup = BeautifulSoup(r.text, 'html.parser')
|
|
||||||
|
|
||||||
country: pycountry.Countrie = None
|
country: pycountry.Countrie = None
|
||||||
formed_in_year: int = None
|
formed_in_year: int = None
|
||||||
|
Loading…
Reference in New Issue
Block a user