1
0
mirror of https://gitlab.crans.org/mediatek/med.git synced 2024-12-25 06:22:23 +00:00

Update Bedetheque scraper

This commit is contained in:
Yohann D'ANELLO 2021-04-29 13:51:52 +02:00
parent 1a96b1a2aa
commit 33a7e5adc6
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85

View File

@ -23,7 +23,7 @@ class BedetequeScraper:
:return: CSRF token
"""
response = self.session.get(self.referer).content.decode()
regex = r'csrf_token_bedetheque\"\s*value=\"(\w*)\"'
regex = r'csrf_token_bel\"\s*value=\"(\w*)\"'
return re.search(regex, response).group(1)
def search_by_isbn(self, isbn: str) -> [str]: