💯
TIL
  • TIL
  • Different options for doing LLM inference
  • Generate Subtitles locally using whisper
  • Compressing images from the CLI
  • Running parallel Ollama inference
  • Fetching Train availability in IRCTC
  • Changing Git Commit Email Address
  • Clone any website to local using Httrack
  • Adding Drag drop from terminal in Mac OS
  • Minimum Effort
    • YouTube Transcript Formatter
    • Virtual Talking AI companion to help out in tough times
    • Super fast voice based translation system
  • Proud Memories
    • Conducting an LLM Workshop
    • Honours degree from Education Minister
    • GIDS Conference Participant from TW
    • Speaking at MEC.Conf
    • Being a judge at Hack4Tomorrow hackathon
Powered by GitBook
On this page
  • Problem
  • Steps to fix
  • Note:

Was this helpful?

Edit on GitHub

Fetching Train availability in IRCTC

Easy way to fetch availability of all trains at once in IRCTC page

PreviousRunning parallel Ollama inferenceNextChanging Git Commit Email Address

Last updated 1 year ago

Was this helpful?

Problem

When you search for trains in page, it never shows the seat availability directly. You'll have to manually go and click the refresh button of every listed train

Steps to fix

  1. Apply filters to narrow down the list of trains

  2. Paste the following script in console to get the availability status of all trains at once

document.querySelectorAll('.fa.fa-repeat').forEach(el=>el.click())
  1. The end. Tada!

Note:

Ensure that you always try this out after narrowing down the list using filters. Else it'll be too many requests going on at once.

Search for trains in

https://www.irctc.co.in
irctc
List of trains, but availability is not present
Narrow down list of trains using filters