From 48b49c9fd29dbde416041ef4561246899a385a9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20Bora=CC=81ros?= Date: Fri, 7 Jun 2013 01:37:40 +0200 Subject: [PATCH] fix xpath extracting map --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 31d09da..57bfc9d 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,7 @@ VODANAMESXPATH=//table[@class="stdstationtbl"]/./tr[1]//table/./tr[2]/td/text() DOPRAVAURL=http://www.dpp.cz/povodne-aktualni-doprava/ DOPRAVATMP=/tmp/doprava.html -DOPRAVAXPATH1=string(//div[@id="content-container"]/div[@id="pole"]/div/div[2]//a[starts-with(@title,"Stav dopravy k")]/@href) +DOPRAVAXPATH1=string((//div[@id="content-container"]/div[@id="pole"]/div/div[2]//a[starts-with(@title,"Stav dopravy k")]/@href)[last()]) DOPRAVAXPATH2=//div[@id="content-container"]/div[@id="pole"]/div/div[2]//*[@class="img-c img-envelope"]/../preceding-sibling::* # function