4 ms·
Show HN: Cheap Flights finder bot with Python
Cheap flights finder
- archiewood 3y agoTraceback (most recent call last): File "/home/runner/2320236597/main.py", line 3, in <module> from email_sender import SendEmail File "/home/runner/2320236597/email_sender.py", line 7, in <module> my_secret = os.environ['gmail_pass'] File "/nix/store/xf54733x4chbawkh1qvy9i1i4mlscy1c-python3-3.10.11/lib/python3.10/os.py", line 680, in __getitem__ raise KeyError(key) from None KeyError: 'gmail_pass'
- robertlagrant 3y agoSee, this is what happens when you don't commit secrets to your repo.
- syntaxing 3y agoBetter than hardcoding it
- evulhotdog 3y agoOr test before you share with the world.
- aizaddx 3y agoFixed it now, thank you.
- aizaddx 3y agoThank you so much for having a look at my code. I was trying it with replit and it was working fine at my PC and I never got to know about this issue maybe I was logged into my replit. I have fixed it now. Do you mind giving it another shot? I am sorry I am pretty new to coding and learning things by trial and errors.
- scumola 3y agoNice! Is the kiwi API documented somewhere or did you just reverse-engineer it from the mobile app?
- stevedomin 3y agoThey have a B2B product called Tequila: https://tequila.kiwi.com/portal/login https://tequila.kiwi.com/portal/login
- aizaddx 3y agoYes, it is documented https://tequila.kiwi.com/portal/docs/tequila_api/search_api https://tequila.kiwi.com/portal/docs/tequila_api/search_api