My test website is https://www.nature.com/articles/ncomms12114.
I want to get the text from the "Additional Information" part.
My Xpath code is
from lxml import etree
page_text = requests.get(url="https://www.nature.com/articles/ncomms12114",headers = headers).text
tree = etree.HTML(page_text)
addInformatin_raw= tree.xpath("//h2[text()='Additional information']/..")[0]
addInformatin = addInformatin_raw.xpath('./div//text()')[0]
But the response of my code is just a string called-"How to cite this article:" which is part of the text.
My ideal response is"How to cite this article: Wang, S.Y. et al. Hypoxia causes transgenerational impairments in reproduction of fish. Nat. Commun. 7:12114 doi: 10.1038/ncomms12114 (2016)."
So I want to know how to revise my code.Thank you foe your answer.