Bug fix museodelprado.es URL
This commit is contained in:
parent
d7df704327
commit
541443df02
|
@ -3,7 +3,7 @@ import lxml.html
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
|
||||||
re_url = re.compile(r'www.museodelprado.es/en/.*/([^/]+)$')
|
re_url = re.compile(r'www.museodelprado.es/(.+)$')
|
||||||
|
|
||||||
def get_html(url):
|
def get_html(url):
|
||||||
catalog_id = re_url.search(url).group(1).replace('/', '_')
|
catalog_id = re_url.search(url).group(1).replace('/', '_')
|
||||||
|
|
Loading…
Reference in a new issue