From bb703152db47a4f522d581f240822643c1516eac Mon Sep 17 00:00:00 2001 From: "Gerber, Mike" Date: Tue, 23 Jun 2020 15:15:21 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20ppn2ocr:=20Verify=20oai.sbb.berl?= =?UTF-8?q?in's=20certificate=20again?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Now that oai.sbb.berlin's certificate chain is fixed, remove the workaround again. Fixes GH#15. --- ppn2ocr | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ppn2ocr b/ppn2ocr index 242a8d8..7258608 100755 --- a/ppn2ocr +++ b/ppn2ocr @@ -32,9 +32,7 @@ def oai_mets(ppn): } s = requests.Session() - # FIXME oai.sbb.berlin fails certificate check - #r = s.get(API_URL, params=params) - r = s.get(API_URL, params=params, verify=False) + r = s.get(API_URL, params=params) mets = ET.XML(r.content).find(f".//{{{XMLNS['mets']}}}mets") mets = ET.ElementTree(mets)