Giter Site home page Giter Site logo

esqew / lirr-penn-station-departure-scraper Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 28 KB

A rudimentary Node.js script to read and procedurally retrieve Penn LIRR Station train departure and track data from LIRR's API and store it in an MSSQL database for future use in data science projects.

License: ISC License

JavaScript 93.45% Shell 6.55%

lirr-penn-station-departure-scraper's Introduction

lirr-traintime-scraper

A rudimentary Node.js script to read and procedurally retrieve train time and track data from LIRR's API and store it in an MSSQL database for future use in data science projects.

Issues

This isn't the greatest code in the world. I'm actively tracking all outstanding issues in the Issues tab. Pull requests are always welcome.

lirr-penn-station-departure-scraper's People

Contributors

esqew avatar dependabot[bot] avatar

Watchers

 avatar

lirr-penn-station-departure-scraper's Issues

Handle potential Promise rejections

Promise rejections are currently unhandled, which can lead to crashes. Wrapping Promises with appropriate try/catch logic will increase the module/script's stability and align with generally-accepted best practices.

This was unfortunately yet another convention deprioritized for the initial MVP but could ultimately end up providing a huge amount of value.

Refactor to modular design

Increase re-usability in separate projects by decoupling database logic from scraper and exporting the scraper's functionality as a Node.js module. This was deprioritized for the initial MVP in favor of ensuring the scraper could be set up to collect continuous data as quickly as possible.

Add documentation

traintime.scrape.js should include more in-depth documentation to better facilitate future feature additions/improvements/bugfixes. This was deprioritized for the initial MVP but now that the core functionality is not weighing on the timeline as heavily it should be brought back into the backlog.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.