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
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ class BedetequeScraper:
:return: CSRF token :return: CSRF token
""" """
response = self.session.get(self.referer).content.decode() 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) return re.search(regex, response).group(1)
def search_by_isbn(self, isbn: str) -> [str]: def search_by_isbn(self, isbn: str) -> [str]: