In preparing for my analysis project, I ran the XPath Query: //div[matches(.,'plague', 'i')]/*[not(matches(.,'cattle'))]/*[not(matches(.,'locust'))]/head
This specific XPath is designed to find how often headlines containing the word “plague" are found in the Egyptian Gazette.