mrozekma / gencon-hotel-check Goto Github PK
View Code? Open in Web Editor NEWGencon Hotel Check
License: GNU General Public License v3.0
Gencon Hotel Check
License: GNU General Public License v3.0
I've had the --popup and browser alerts on, and while they work fine with --test, of the 4 or 5 rooms I've seen go by on the search the past few days, I've only had the alert work once. I even tried restarting the script while there was availability and it didn't work. Not sure what the issue is.
That said, by watching the command line output, my friends and I were able to upgrade from an airport hotel to a JW Marriott one :)
Thank you for your work in keeping this up to date, it's let me get good rooms every year since you've started.
Since todays update it does work and polls the hotel rooms, however it does not filter down based on --connected or --max-distance.
I've included a capture of the last time I ran it, as you can see I used --max-distance 3 and it even says 'within 3.0 blocks' but shows ones from 6.0, 4.0, and 6.0 in results.
Searching... (1 guest, 1 room, 2022-08-04 - 2022-08-07, within 3.0 blocks)
Results: (2022-02-16 15:14:25.165000)
Distance Price Hotel Room
6.0 blocks $747 Homewood Suites Indianapolis Canal IUPUI (1) 1 King Bed Studio Suite w/Pullout Sofa
4.0 blocks $921 Sheraton Indianapolis City Centre Hotel (1) Executive King Suite w/Pullout Sofa
6.0 blocks $615 Tru by Hilton Indianapolis Downtown (1) 1 King Bed
Thank you so much for this code! I know you can toggle things like the bed size you want as either/or, but is there any way to ask for both hotels with Wednesday available and without? I don't need Wednesday, but I'd like it.
It looks like something changed on the Passkey side when searching for a hotel without having an existing reservation: it is now returning a HTTP Error 403: Forbidden message. It's not as simple as User Agent filtering; I tried changing the Python-urllib/2.7 User Agent to match Chrome for Window's string and it still fails.
I attempted to get this to work for the housing portal that went up yesterday, but it seems they have changed something and it no longer works. I get invalid URL, and the URL for me when I do not have a room no longer matches the example in the readme.
I haven't used the script since last year but now (with the updated version from yesterday) I am getting 403 failed session requests.
Session request failed: HTTP Error 403: Forbidden
Here's my command:
python gencon-hotel-check.py --key XXXXXXXX-XXXX Surname --show-all
Tests work as intended
Last time I used this was 2017. I've tried and tried again, but no matter what, I get nowhere. Just path errors or it simply just repeats the option again without setting anything. I can't get the script to run, nor set any parameters after following the guidance in the usage section. Python is up to date. I sadly need a step-by-step idiot list (download, where the directory goes, how to start script) on setup and parameter entry, as apparently I'm a moron and can't figure this out on my own despite having done so back in the day. I've exhausted my own efforts, so please don't think I'm n just asking idly, but if I haven't fixed this after eight hours, I'm never going to on my own.
There used to be guidance for setting up a bat file for this, that would just run the script once you set all of the parameters in the bat file. Does that still work?
gencon-hotel-check/gencon-hotel-check.py
Line 29 in 34056a9
On the line above, it looks like the date is searching in 2022 instead of 2023.
When attempting to send alerts to multiple emails, it appears to just email the last one listed in the chain the number of times the --email command was entered.
I used the following structure:
--email smtp.gmail.com FROMEmailAddress TOEmailAddress1 --email smtp.gmail.com FROMEmailAddress TOEmailAddress2 --email smtp.gmail.com FROMEmailAddress TOEmailAddress3
Michael, thanks a ton for putting this together! I'm running a search with max-distance connected, and it's finding a hotel 5 blocks away - is that intentional?
--- Text returned by the script ---
Searching... (1 guest, 1 room, 2019-07-31 - 2019-08-04, connected)
Results: (2019-06-09 12:38:08.911231)
Distance Price Hotel Room
5.0 blocks $912 The Alexander (1) Deluxe Queen Queen
--- The ICC list of connected and nearby hotels lists the Alexander as nearby but not connected ---
No issues, just snagged a room for GC2022 thanks to this script and wanted to say 🥂 . If you're in Indy this year lemme know and I'll buy you a beer (or beverage of choice).
I have went into the .py file and updated the dates, but even with that change it is listing 'Nonetype' object is not iterable.
I've been trying to get this to work all day and am embarrassed, but out of idea's at what I am doing wrong. I have used Python in the past, but it's been a long time ago, and I am not a coder at all. I either am putting the key in the wrong place or not remove enough of the example code or something. It always gives me a syntax error, I also tried the whole url, as the alternative but same results. Can you show an example of what and where you put your key in at?
Here is where I thought it went and how I put mine in: ( I tried a ton of different ways)
group = parser.add_argument_group('required arguments')
# Both of these set 'key'; only one of them is required
qroup.add_argument('--key 32XXXXX6-GE52/18XXX737ecaXXXXXX54adb8ff9a6e5a08XXXab0723abbd81XXXXXXbfdXXXbbc4', nargs = 2, metavar = ('KEY', 'AUTH'), help = 'key (see the README for more information)')
group.add_argument('--url', action = PasskeyUrlAction, dest = 'key', help = 'passkey URL containing your key')
Thanks in advance!
After running the program for a while I tried to manually log into the housing portal and saw the following error message in my browser:
GovernorMessageManagerHelper.checkThreshold::GM_202:Message Threshold exceeded
Could that be related to the hotel checker program running?
FYI, Pushbullet is not longer supporting an IOS app.
Been running the script regularly since the lottery, and everything seems to have been working great. But just today I started getting this error when I try to run it. Something change on the housing portal side maybe?
For reference, the command I've been running:
gencon-hotel-check.py --key [XXXXXXXX] [Lastname] --popup --wednesday --show-all
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.