feat: implement automated data scraping and history generation pipeline for PVL reservoir levels

This commit is contained in:
David Fencl
2026-06-05 22:58:21 +02:00
parent 5411bd16ff
commit 8d1fb5b28e
25 changed files with 60588 additions and 419 deletions
+9
View File
@@ -13,6 +13,15 @@ async function test() {
});
const $ = cheerio.load(res.data);
console.log('Inputs:');
$('input').each((i, el) => {
console.log(`Type: ${$(el).attr('type')}, Name: ${$(el).attr('name')}, Value: ${$(el).attr('value')}, ID: ${$(el).attr('id')}`);
});
console.log('\nButtons/Links with postback:');
$('a[href*="__doPostBack"]').each((i, el) => {
console.log(`Text: ${$(el).text()}, Href: ${$(el).attr('href')}`);
});
const tables = $('table');
tables.each((i, tbl) => {
console.log(`TABLE ${i}:`);