GithubHelp home page GithubHelp logo

rzdtc's Introduction

Rzdtc

Rzd tickets checker

Usage

Rzdtc.check_tickets('КРАСНОДАР', 'РОСТОВ', '24.11.2016')
Rzdtc.check_tickets('КРАСНОДАР', 'РОСТОВ', '24.11.2016').first

# =>
[
  {"date0"=>"24.11.2016", "varPrice"=>true,
  "date1"=>"24.11.2016", "time0"=>"01:33", "time1"=>"06:04",
  "trDate0"=>"23.11.2016", "trTime0"=>"14:00",
  "deferredPayment"=>false, "route0"=>"СУХУМ",
  "route1"=>"МОСКВА КАЗ", "number"=>"306С",
  "number2"=>"306С", "typeEx"=>"0", "elReg"=>false,
  "uid"=>"306SJ_1479940380000_1479956640000", "train_id"=>"0",
  "bEntire"=>false, "carrier"=>"ФПК", "type"=>"0","station0"=>"КРАСНОДАР",
  "station1"=>"РОСТОВ", "timeInWay"=>"04:31", "flMsk"=>"3",
  "cars"=>[
    {"freeSeats"=>"24", "itype"=>"4", "servCls"=>"2Л",
     "tariff"=>"914", "pt"=>"273", "typeLoc"=>"Купе", "type"=>"Купе"},
    {"freeSeats"=>"36", "itype"=>"1", "servCls"=>"3Л",
     "tariff"=>"572", "pt"=>"171", "typeLoc"=>"Плацкартный", "type"=>"Плац"},
    {"freeSeats"=>"14", "itype"=>"6", "servCls"=>"1Л",
     "tariff"=>"1878", "pt"=>"562", "typeLoc"=>"СВ", "type"=>"Люкс"}
  ]}
]

MIT License

rzdtc's People

Contributors

kirqe avatar

Stargazers

 avatar

Watchers

 avatar  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.