Since date is unique 10/4 - 2015
, you might locate a b
tag node using xpath's contents()
, see html here:
//b[contains(., '10/4 - 2015')]
then based on this node you go to its parent and siblings, smth. like this (not tested):
//b[contains(., '10/4 - 25')]/parent::div/siblings::div
Update
Since the current date items go at the bottom, here accorting to the html all the following-sibling nodes pertain to this data (google xpath sibling after
)
//b[contains(., '10/4 - 25')]/parent::div/following-sibling::div[@class='newsItem']
See test here. If you want to fetch divs inbetween, then explore this