From 298bef5c6b65f1181ebc1dac79327026cd22a191 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Tue, 30 Jun 2020 11:06:46 +0100 Subject: [PATCH] Follow redirects Closes: #27 --- depicts/mediawiki.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depicts/mediawiki.py b/depicts/mediawiki.py index aa3c73a..7fcb75f 100644 --- a/depicts/mediawiki.py +++ b/depicts/mediawiki.py @@ -67,7 +67,7 @@ def get_entity_with_cache(qid, refresh=False): if not refresh and os.path.exists(filename): entity = json.load(open(filename)) else: - entity = get_entity(qid) + entity = get_entity(qid, redirects=True) json.dump(entity, open(filename, 'w'), indent=2) return entity