From 52db7ac00f340354c8e629b539f758d6579feedc Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Tue, 30 Jun 2020 11:27:46 +0100 Subject: [PATCH] rijksmuseum URL can point to English catalog page --- depicts/rijksmuseum.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depicts/rijksmuseum.py b/depicts/rijksmuseum.py index 08ab331..86284a3 100644 --- a/depicts/rijksmuseum.py +++ b/depicts/rijksmuseum.py @@ -3,7 +3,7 @@ import lxml.html import os import re -re_url = re.compile(r'^https://www.rijksmuseum.nl/nl/collectie/([^/]+)$') +re_url = re.compile(r'^https://www.rijksmuseum.nl/(?:nl/collectie|en/collection)/([^/]+)$') def get_html(catalog_id): filename = f'cache/rijksmuseum_{catalog_id}.html'