Verified Commit 33a7e5ad authored by ynerant's avatar ynerant
Browse files

Update Bedetheque scraper

parent 1a96b1a2
Pipeline #6055 passed with stages
in 4 minutes and 10 seconds
......@@ -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]:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment