scripts/scraping/electricitymap/read_json.js

14 lines
497 B
JavaScript
Raw Normal View History

2023-09-14 16:20:59 +02:00
import * as scraped_data_account from "./output_json.json" assert {type: 'json'}
let scraped_data_account_keys = Object.keys(scraped_data_account['default'])
console.log('scraped_data_account_keys', scraped_data_account_keys.sort())
scraped_data_account_keys.forEach(elem => {
console.log('- ',scraped_data_account['default'][elem].posted_time)
console.log('- ',scraped_data_account['default'][elem].content)
console.log('',)
})
// console.log('scraped_data_account', scraped_data_account)