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

Steps to fix

Narrow down list of trains using filters
Note:
Last updated
Easy way to fetch availability of all trains at once in IRCTC page
When you search for trains in irctc page, it never shows the seat availability directly. You'll have to manually go and click the refresh button of every listed train

Search for trains in https://www.irctc.co.in
Apply filters to narrow down the list of trains

Paste the following script in console to get the availability status of all trains at once
The end. Tada!
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.
Last updated
document.querySelectorAll('.fa.fa-repeat').forEach(el=>el.click())