A simple nodejs project for scraping marks of dhss students using puppeteer and nodejs.
Please create a .env file and insert your firbase credentials inorder for this to work. or you cannot use the db_helper
npm install
const Scraper = require("./scraping/scraper.js");
const DatabaseHelper = require('./db_helper/dbhelper.js');
let scraper = new Scraper();
let dbHelper = new DatabaseHelper();
(async()=>{
await scraper.init();
await scraper.navigateToSchoolCode("07087");
await scraper.scrape();
await dbHelper.insertIntoDb("ernakulam","07087",scraper.studentData);
await scraper.disposeScraper();
})();