-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The new site seems to have broken the bot #5
Comments
Yes. Unfortunately the global entry website migrated to using login.gov, which requires 2fa. We could probably get around that successfully, but it would take a significant effort. |
There's actually an endpoint (airport code, start date, and end date query params) that doesn't require authentication and returns appointment slot information. This way you wouldn't need to mess with the two-factor auth. |
@jluyau no way! That would be excellent. Is there documentation about this anywhere? What's the endpoint? |
By the way, login.gov supports time-based two-factor (i.e., no text messages), which is much easier to get around. (I did it using pyotp.) Of course, using an unauthenticated endpoint would be better. 🎉 |
Not sure if there's any official documentation, as I was just snooping around the network console looking at how the data was being populated. Here's the endpoint: The response is an array of JSON objects:
where active represents the number of open appointments for the given time slot. Hope this helps! |
I made something in python that accomplishes the same with the new endpoint. I apologize for duplicating effort but I did not find this project when I was looking for something that does exactly this! Hope this helps anyway. |
I used the new endpoint to write my own Twitter bot:
@oliversong: Do you want to just run my bot on your account instead? Should be pretty easy to switch over. There's no point in having two Twitter bots that do the same thing—and yours already has so many followers. |
Just reporting in that I was able to reschedule my appointment for tomorrow (originally 4 months from now!) using my variant of this bot, see above. So it does work :) |
I missed it for today at 18:30pm lol someone acted faster than me :(( |
The bot hasn't announced any new open slots since the switch from the GOES site to the new TTP site. Could this have broken the bot?
The text was updated successfully, but these errors were encountered: