Giter Site home page Giter Site logo

fedebotu / k-trains Goto Github PK

View Code? Open in Web Editor NEW
41.0 41.0 19.0 120 KB

An app for automatically reserving trains in Korea - both Korail and SRT - even when sold out

Home Page: https://k-trains.streamlit.app

Python 90.83% HTML 9.17%
bot korail korea ktx python reservation scripts srt streamlit trains

k-trains's Introduction

Welcome to my Github page πŸ‘‹

Facebook Badge Linkedin Badge Gmail Badge Instagram Badge Twitter Badge

-🎯 I'm focusing now, I will update this section over time

You may find additional info on my homepage πŸ˜‰

k-trains's People

Contributors

cecy07 avatar dhfhfk avatar fedebotu avatar welikeheon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

k-trains's Issues

Korean translation

As the title suggests - any help would be great.
Here you may find some ideas to get started to contribute :)

login issue

image

File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 535, in _run_script
exec(code, module.dict)
File "/mount/src/k-trains/app.py", line 97, in
ktrains = KTrains(st.session_state.id, st.session_state.pw, auto_login=True)
File "/mount/src/k-trains/ktrains/srt/srt.py", line 71, in init
self.login(srt_id, srt_pw)
File "/mount/src/k-trains/ktrains/srt/srt.py", line 127, in login
raise SRTLoginError(r.json()["MSG"])

I usually get this error when I try to log in. And then suddenly I log in. What should I do

Having trouble with secrets.toml

I have cloned your git and ran it, it keep asking password(which is email password i guess). I've already wrote file "secrets.toml" in .streamlit directory.

So I tried upload entire script to GitHub and connect with Streamlit and set secret variables in advanced settings but no luck..

Can you guide this situation?

Thanks for great and neat work by the way.

Having trouble with KTX Login

Hello,

First of all, thank you for making this web site.
I really love this.

By the way, I'm having trouble with KTX Login System.
I can login in Korail web site and App, but I can't login in this macro web site.

I even can't find any clue for this bug in Devtools.

I hope you guys figure it out.

I have some problem

when I run your program, I had some problem that below.
Can you help me?

Error:
Traceback (most recent call last):
File "C:\startcoding\k-trains-main\reserve.py", line 68, in get_trains
email_sender = st.secrets.get("email_sender")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 774, in get
File "C:\Users\anhur\AppData\Local\Programs\Python\Python311\Lib\site-packages\streamlit\runtime\secrets.py", line 305, in getitem
value = self._parse(True)[key]
^^^^^^^^^^^^^^^^^
File "C:\Users\anhur\AppData\Local\Programs\Python\Python311\Lib\site-packages\streamlit\runtime\secrets.py", line 214, in _parse
raise FileNotFoundError(err_msg)
FileNotFoundError: No secrets files found. Valid paths for a secrets.toml file are: C:\Users\anhur.streamlit\secrets.toml, C:\startcoding\k-trains-main.streamlit\secrets.toml

check the issue with function

Hello,

I found a bug to fix while trying to get a ticket for KTX.

I guess some function doesn't fit with multi language environment(I used Korean tho).
I don't have any authority for checking the exact situation but i do know that i can macro when i use this tool in English.

image

I hope this issue works for you.

Thank you.

Implement seat selection (help wanted)

Right now, we are only checking for available tickets here without differentiating general (일반) / special (특...) seats.

I don't have a lot of time recently so if anyone wants to implement the function I'll be glad to give some directions :)

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.