Having problem in extracting data from this website https://aemo.com.au/. I tried to extract the current demand value from the website but it did'nt work.
CALVIN HANS ANAK LANG
2024년 4월 1일
최근 활동 Christopher Stapels
의 답글: 2024년 4월 3일
%%
clear
clc
close all
% TODO - Replace the [] with channel ID to write data to:
writeChannelID = 'your channel ID'; %channel ID
% TODO - Enter the Write API Key between the '' below:
writeAPIKey = 'your write API Key'; %write API Key
% url for POST request
url = 'https://aemo.com.au/';
webText = webread(url);
filteredData(4) = urlfilter(url,'<div class="summary-row-value">');
display(filteredData(4), 'AEMO');
thingSpeakWrite(writeChannelID, filteredData(4), 'WriteKey', writeAPIKey);
댓글 수: 1
시간 내림차순Those elements are populated by javascript and arent available at page load. You need a browser to render that content, then you could scrape it.
I did find an underlying component that geenrtes that visualization, but it sill doesnt have the numbers populated until the javascript runs. It feels like an operation that should be very possible but it isnt unfortunately. Ill keep looking for a solution.
https://visualisations.aemo.com.au/aemo/apps/visualisation/index.html#/electricity/dashboard?Elec_enabled=Yes&Gas_enabled=No&Elec_location=NSW,QLD,SA&
참여하려면 로그인하세요