fedebotu / k-trains

An app for automatically reserving trains in Korea - both Korail and SRT - even when sold out
https://k-trains.streamlit.app
47 stars 29 forks source link

Having trouble with secrets.toml #11

Closed yuickey closed 5 months ago

yuickey commented 11 months ago

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.

fedebotu commented 11 months ago

The password is needed for the email to work. Does your secrets.toml work like this?

email_sender = "xxx@yyy.zzz"
email_password = "xxxxxx"
yuickey commented 11 months ago

Now I figured out. I needed to set the "app password" at Google side. Now it works like charm. I would like to know if the ticket is currently sold out, and I run the app, will it continue to try to get the ticket? Isn't there a limit ?

fedebotu commented 11 months ago

It will continuously try to get the ticket! We found no limit so far; the script should run until the train departs and it is not available anymore