subins2000 / late-trains-at-indian-railway-stations

A simple data collection and analysis of late trains at Indian railway stations, this example is of Thrissur

Home Page:https://lab.subinsb.com/late-trains-at-indian-railway-stations/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Analysis of late trains at Thrissur railway station

Analysis

See https://lab.subinsb.com/late-trains-at-indian-railway-stations/ (2023 November 10 - 2023 December 9)

https://twitter.com/SubinSiby/status/1735979264099643589

Data collection

Data source: https://etrain.info/in

cp state.template.json state.json # Clean state to start from scratch
php -S localhost:3000

Make changes you need in collect.js.php and run this in the console

$.get("http://localhost:3000/collect.js.php", function(data) { (1, eval)(data) })
collectorInit()
setInterval(fetchDelays, 6000)

Data will be stored in state.json

Live analysis as the data is collected can be seen from http://localhost:3000

About

A simple data collection and analysis of late trains at Indian railway stations, this example is of Thrissur

https://lab.subinsb.com/late-trains-at-indian-railway-stations/

License:Other


Languages

Language:HTML 58.8%Language:PHP 41.2%