Skip to content

Instantly share code, notes, and snippets.

View sunil12738's full-sized avatar

Sunil Chaudhary sunil12738

View GitHub Profile
@sunil12738
sunil12738 / scrapperAndClassifier.js
Last active October 6, 2025 12:35
Classname scrapper and classifier into various percentages
/* idea by sunil12738, authored by Google Gemini Pro */
(function() {
/**
* Recursively traverses the DOM from a given starting element
* and collects all unique CSS class names.
*
* @param {HTMLElement} startElement The starting element to traverse from.
* @returns {string[]} An array of unique class names found.
*/
const https = require('https');
const { exec } = require('child_process');
let slotFound = false
function poll() {
const apiCall = setInterval(() => {
console.log(`${new Date}: polling`)
fetchSlots()
if (slotFound) {
clearInterval(apiCall)