Page 1 of 1
http request
Posted: 26 May 2014 05:47
by rsegoly
Can I get the return data with the html code?
http://m.ontime3g.com/?route=149&stop=37040&dir=1
I need just the number of word after the word בעוד
Re: http request
Posted: 26 May 2014 17:21
by Martin
Hi,
It should be possible to extract the text using an action
Script and functions
substring and
indexOf.
Something like this might work (I'm not sure since the page contains left-to-right and right-to-left text):
Code: Select all
// find the start index of בעוד
start = indexOf(response, "בעוד");
// add 5 to skip the characters of the word plus the subsequent space
start = start + 5;
// find the space after the number
end = indexOf(response, " ", start);
//extract the text between the two positions
number = substring(response, start, end);
Regards,
Martin
Re: http request
Posted: 26 May 2014 17:27
by rsegoly
thanks
I managed using split