From 8930c7df338a097a9e37e60893faf7021afa889b Mon Sep 17 00:00:00 2001 From: Brendan Howell Date: Thu, 5 Oct 2017 14:32:52 +0200 Subject: [PATCH] xpath to find non-meta tags with OG data --- screenless/bureau/publications/publications.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screenless/bureau/publications/publications.py b/screenless/bureau/publications/publications.py index 1efe2fb..86da7a0 100644 --- a/screenless/bureau/publications/publications.py +++ b/screenless/bureau/publications/publications.py @@ -182,7 +182,7 @@ class Publications(Bureau): html = lxml.html.document_fromstring(resp.text) #find all elements with property="og:" - elements = html.findall(".//[@property]") + elements = html.findall(".//*[@property]") for element in elements: prop = element.get("property") val = element.get("content")