Code Monkey home page Code Monkey logo

best-flight-fares's Introduction

best-flight-fares

This repo followed implemented by this article : หาตั๋วเครื่องบินราคาถูกล่วงหน้าด้วย Javascript และ Puppeteer

  1. npm i

  2. touch .env to create .env file to setup env

    PORT = 3000;
    YELLOW_AIRLINE = "YellowAir";
    RED_AIRLINE = "RedAir";
    YELLOW_AIRLINE_URL = "https://www.yellowair.com/Flight/GetCalendarFare";
    RED_AIRLINE_URL = "https://www.redair.com/th/th";
  3. npm start

  4. use postman

    • GET : /v1/{yellowairline|redairline}: to get yellow airline or red airline fares with these query params

      • from = departure
      • to = destination
      • fromDate = MM/DD/YYYY
      • toDate = MM/DD/YYYY
      • currency
      • expectPrice
    • example

      /v1/yellowairline?from=DMK&to=NRT&fromDate=08/1/2019&toDate=08/31/2019&currency=THB&expectPrice=7000
      

best-flight-fares's People

Contributors

dependabot[bot] avatar onemanking avatar

Watchers

 avatar

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.