Thanks, take your time, i’m in no rush
Basically it is the part where you have to enter your postalcode stops the party.
I need to find out how to get past that landingsite in a smart way.
If they have thought about security it might not be possible at all this way without entering your details manual
If i juste have visited the site and the cooky or session is placed with you details the script works fine.
But after it expires we have a problem
note : for privacy reasons i stripped the details from goldwing in the below links and script.
Edit1 :
the url i got by using another site of your city :
http://afvalkalender.alphenaandenrijn.n ... ERIC_CODE>
i just refest and deleted history and that links seems to be correct !
That could be the clue we needed.
Edit2:
Code: Select all
commando='curl -s http://afvalkalender.alphenaandenrijn.nl/login/<UNIQUENUMERIC_CODE>'
result=os.capture(commando)
if string.find(result,"rror") then
result=""
WriteToFile("Error >>> function 640"..commando,"url")
end
print(string.len(result))
-- Beperk string tot infoblock van de site
local start=string.find(result,'<ul id="ophaaldata">')
print("start"..tostring(start))
local eind=string.find(result,'<i>Papier en karton</i></a>',start)
print("eind"..tostring(eind))
local nData=string.sub(result, start, eind)
print(nData)
nData contains the date for 3 different types of waiste.
It is unkown for me how you want to implement... you can split them in any way you want and update 3 diff text devices or make a nice string in one text device.
the print(nDate) above prints the plain HTML code, so it looks a bit odd this way, I put it there to have something to show/debug
Are you able to work with this to make it working in your system ?
Note for others of the same city :
There is a second government site for waiste for you where you can fill in you postal code
If you do it on that site it will redirect you to the site goldwing was using but this time with a unique numeric code in the url for you postal code,
so it lands directly on the waiste page