Giter Site home page Giter Site logo

srt_reservation's Introduction

Python program for booking SRT ticket.

매진된 SRT 표의 예매를 도와주는 파이썬 프로그램입니다.
원하는 표가 나올 때 까지 새로고침하여 예약을 시도합니다.

다운

git clone https://github.com/kminito/srt_reservation.git

필요

  • 파이썬 3.7, 3.9에서 테스트 했습니다.
pip install -r requirements.txt

Arguments

dpt: SRT 출발역
arr: SRT 도착역
dt: 출발 날짜 YYYYMMDD 형태 ex) 20220115
tm: 출발 시간 hh 형태, 반드시 짝수 ex) 06, 08, 14, ...
num: 검색 결과 중 예약 가능 여부 확인할 기차의 수 (default : 2)
reserve: 예약 대기가 가능할 경우 선택 여부 (default : False)

station_list = ["수서", "동탄", "평택지제", "천안아산", "오송", "대전", "김천(구미)", "동대구",
"신경주", "울산(통도사)", "부산", "공주", "익산", "정읍", "광주송정", "나주", "목포"]

간단 사용법

회원번호 1234567890
비밀번호 000000
동탄 -> 동대구, 2022년 01월 17일 오전 8시 이후 기차
검색 결과 중 상위 2개가 예약 가능할 경우 예약

python quickstart.py --user 1234567890 --psw 000000 --dpt 동탄 --arr 동대구 --dt 20220117 --tm 08

Optional
예약대기 사용 및 검색 결과 상위 3개의 예약 가능 여부 확인

python quickstart.py --user 1234567890 --psw 000000 --dpt 동탄 --arr 동대구 --dt 20220117 --tm 08 --num 3 --reserve True

실행 결과

기타

명절 승차권 예약에는 사용이 불가합니다.

srt_reservation's People

Contributors

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