From 33a7e5adc67bfaa88184714f3bd8fbc5e49eab41 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Thu, 29 Apr 2021 13:51:52 +0200 Subject: [PATCH] Update Bedetheque scraper --- media/scraper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/media/scraper.py b/media/scraper.py index 0026d61..35139a2 100644 --- a/media/scraper.py +++ b/media/scraper.py @@ -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]: