You are here

Getting url_index page multiple times

2 posts / 0 new
Last post
otorices001
Offline
Joined: 8 years
Last seen: 8 years
Getting url_index page multiple times
otorices001
Offline
Joined: 8 years
Last seen: 8 years

I would like to execute something like this to get one day info from the index_page (url=https://www.directv.cl/guia/guia.aspx). I'm trying to get one day TV shows info in steps using a loop:

*GET YEAR
index_temp_1.modify {calculate(format=date,yyyy)}
*GET MONTH
index_temp_2.modify {calculate(format=date,MM)}
*GET DAY (incrementarlo en cada iteración por )
index_temp_3.modify {calculate(format=date,dd)}
*SET HOUR
index_temp_4.modify {addstart|0}

scope.range {(urlindex)|end}
*************** INICIO BUCLE HORA **********************
loop {('index_temp_4' < "24" )|end}

*Get current time timetable
url_index{url|https://www.directv.cl/guia/Services/ProgrammingGuideAjax.asmx/GetProgra...}
url_index.headers {method=POST|contenttype=application/json}
url_index.headers {postdata={ "minute": "0", "time": "'index_temp_4'", "day": "11", "month": "'index_temp_2'", "year": "'index_temp_1'", "onlyFavorites": "N"}}

*Increment  4 hours
index_temp_4.modify {calculate|4 +}
index_temp_4.modify {replace|.00|}
end_loop
*************** FIN BUCLE HORA **********************
end_scope
...

It is possible to do something like that?

Log in or register to post comments

Brought to you by Jan van Straaten

Program Development - Jan van Straaten ------- Web design - Francis De Paemeleere
Supported by: servercare.nl