feat: implement automated data scraping and history generation pipeline for PVL reservoir levels
This commit is contained in:
@@ -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}:`);
|
||||
|
||||
Reference in New Issue
Block a user