For anyone still following this... it looks like
Code: Select all
https://www.exetel.com.au/myexetel/services/service_usage_adsl_dashboard/<service-number>
is a way to scrape usage data, but it doesn't look like you can directly query it or supply login data to authenticate. It seems that you first need to login to member services, and then use the cookie generated authenticate.
A sanitised curl query that did work until the cookie expied (generated through chrome developer console):
Code: Select all
curl "https://www.exetel.com.au/myexetel/services/service_usage_adsl_dashboard/0123456789" -H "Cookie: hidden=value; hidden=value; PHPSESSID=clipped_data; ci_session=clipped_data" -H "Origin: https://www.exetel.com.au" -H "Accept-Encoding: gzip, deflate, br" -H "Accept-Language: en-AU,en-GB;q=0.9,en;q=0.8,en-US;q=0.7" -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36" -H "Content-Type: application/x-www-form-urlencoded; charset=UTF-8" -H "Accept: */*" -H "Referer: https://www.exetel.com.au/myexetel/" -H "X-Requested-With: XMLHttpRequest" -H "Connection: keep-alive" -H "DNT: 1" --data "service_number=0123456789" --compressed
and returned (?, 228GB usage, of 500GB service, timestamp):
Code: Select all
["noop",228,500,"2018-06-13 08:22:33"]
I'm sure that the request can be pared down, but I'm at a loss as to how to get curl to do the necessary login and authentication - cookie-jar doesn't seem to be working, so I'm sure there's something else I'm missing. Food for thought for anyone still interested.