mirror of
https://gitlab.crans.org/mediatek/med.git
synced 2024-11-27 10:53:10 +00:00
Update Bedetheque scraper
This commit is contained in:
parent
1a96b1a2aa
commit
33a7e5adc6
@ -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]:
|
||||
|
Loading…
Reference in New Issue
Block a user