IISM Gulmarg skiing course · 10:00 AM
500
seats
1,00,000
applicants
6 sec
to apply
At 10:00 AM, the form opened. By 10:02, it was over. This is how I made sure my friend was not one of the thousands watching the seat counter hit zero — and why the fastest “person” in the room was not a person at all.
The Problem: 500 Seats, 1,00,000 Applicants
Some problems can’t be solved by working harder. This was one of them.
The application form for the IISM Gulmarg skiing course — the Indian Institute of Skiing and Mountaineering in Kashmir — was going live at 10 AM. There were only 500 seats, and roughly 1 lakh applicants were going to hit the site at the same moment. Seats were first come, first served.
That’s a 1-in-200 chance on paper. In practice it’s worse, because the form took 1 to 2 minutes to fill by hand, and by the time a human finished typing, the seats were already gone.
My friend had already tried twice. Both times the site loaded, he started filling the form, and the moment he submitted, the available seats showed 0. Not because he was slow by human standards, but because the competition wasn’t human-speed.
I decided to stop competing at human speed.
The Build: 4 to 5 Hours, 2,000+ Lines of Python
The day before, I spent 4 to 5 hours building an automation with the OpenCode AI agent, using Python and Playwright for browser control. The result was a script of more than 2,000 lines that handled the entire registration flow end to end.
1. A smart monitor, not a blind refresh
The script didn’t just open the page and hope. It checked whether the site was up, whether the form was live, and whether a receipt page was reachable. It also adjusted its own polling speed:
- Every 30 seconds while the window was far away
- Every 10 seconds as the opening time got close
- Every second once the form was about to go live
This kept it light early on and aggressive at the moment it mattered.
2. Pre-loaded data
I prepared a JSON file with all the applicant’s details in advance. When the form went live, nothing had to be looked up or typed. The data was injected into the fields instantly.
3. Image upload and auto-submit
Forms like this usually require a photo or signature upload. The script handled the file upload automatically, then clicked submit without waiting for a human.
4. Taming ASP.NET
The site ran on ASP.NET, which means full-page postbacks. Every dropdown selection could trigger a complete refresh and wipe the page state. A naive script breaks right there. Mine had to wait for each reload, confirm the page was stable, and only then move to the next field.
5. Fallback logic
What if the first-choice session or course showed no seats? The script was built to fall back to the next session or course automatically instead of failing and leaving the applicant with nothing.
The Result: 120 Seconds Down to 6
On the day, the script filled the whole form in 6 seconds.
Here’s the math:
- Manual time: 120 seconds
- Automated time: 6 seconds
- Speedup: 120 ÷ 6 = 20x faster
- Time saved: (120 − 6) ÷ 120 = 95%
Twenty times faster, with 95% of the time eliminated. In a race where seats vanish in minutes, that’s the whole game.
The automation was ready to submit in six seconds. Then, at the worst possible moment, the portal went dark.
The Chaos: Crashes, Spam, and a 20-Minute Outage
It wasn’t a clean run. When 1 lakh applicants hit one server at once, the server buckles. The website crashed for about 20 minutes. Pages timed out, requests failed, and everyone was hammering refresh.
I kept the script retrying through the outage. When the site came back, the automation was already in position, and it completed the form in seconds. My friend got the seat.
The Lessons: 4 Things I’d Never Skip Again
1. Everything breaks, so plan for it. Websites crash. Sessions expire. Pages half-load. A good automation isn’t one that works when everything goes right. It’s one that recovers when things go wrong. Retries, state checks, and fallbacks aren’t extras. They’re the core.
2. Watch for concurrency limits. The portal allowed only one active login per account at a time. My friend and I were both online during the window, and the sessions collided. One of my two friends couldn’t get through because of it. The code was fine, but the real-world constraint wasn’t in my plan. Always check how many sessions an account is allowed before launch day.
3. Speed is a skill you can’t build with fingers. You can type fast, practice, and memorize every field, and you’ll still lose to something that fills a form in 6 seconds. When the contest is first come, first served, the fastest participant is almost always automated.
4. AI agents make this level of work reachable. A 2,000-line script with polling logic, fallbacks, and edge-case handling used to be days of work. With an AI coding agent, I built and tested it in an afternoon.
It Wasn’t My First Rodeo
Years ago at university, I automated the results website to scrape student results. In about 4 seconds, my script pulled 100 results. In total I collected 2,000+ results across all three years of BSc, BCA, BA, and BCom.
The university’s site eventually blocked me, which I still find hilarious. It was my first lesson in how fast automation can outrun what a website expects from one visitor.
What This Means for You
The skill behind both stories is the same: looking at a tedious, repetitive, or time-sensitive task and asking, “Does a human actually need to do this?”
Most of the time, the answer is no. I can help you automate things like:
- Form filling and data entry that eats hours every week
- Software and browser workflows that a computer agent can run for you
- Daily manual reports, replaced by an automated report delivered to you every morning
- Data collection and monitoring, such as tracking a page, a price, or a status and alerting you the moment it changes
If you have a task that’s slow, repetitive, or too competitive for humans, send it my way. I’ll figure out where the automation fits and build it.
Ajay Sonkar
Web Development & Digital Services
See more past projects and case studies, or read what is included on the services page.