|
|
@ -182,7 +182,7 @@ class Publications(Bureau):
|
|
|
|
html = lxml.html.document_fromstring(resp.text)
|
|
|
|
html = lxml.html.document_fromstring(resp.text)
|
|
|
|
|
|
|
|
|
|
|
|
#find all elements with property="og:<something>"
|
|
|
|
#find all elements with property="og:<something>"
|
|
|
|
elements = html.findall(".//[@property]")
|
|
|
|
elements = html.findall(".//*[@property]")
|
|
|
|
for element in elements:
|
|
|
|
for element in elements:
|
|
|
|
prop = element.get("property")
|
|
|
|
prop = element.get("property")
|
|
|
|
val = element.get("content")
|
|
|
|
val = element.get("content")
|
|
|
|