Programming related question
So it's time for college and one of the classes I want is full. The only way I can get into it is if someone randomly drops it and I log on just in time to notice the new slot, and take it. So, I got to thinking, I'm sure I could write a program to do this for me and just leave it running 24/7. So that's my question, how would one go about writing a program to interact with a website like this? It would have to log in as me (using username /password) select the correct category from a drop-down list, then monitor some numbers on a page. When the class becomes open it will have to check a check-box and click submit.
So, who can give me some pointers to a method of doing this?
So, who can give me some pointers to a method of doing this?
Comments
If you are savvy enough, you can hook into your browser using Java.
I would recommend AutoIt, except for some reason it doesn't parse buttons or text on a webpage.
Building your own FireFox plugin is also quite reasonable. Should be fairly straightforward script and just have it refresh the page a couple times a minute. Heck, you could refresh faster if there isn't any nasty anti-bot checkers (those things that ask for you to input the text/numbers from a picture.
Although, just a word of advice. Since this program probably won't be thoroughly tested, I'd suggest that you not have it input any data for you (I don't remember signing up for spanish 20 times). Just refresh, monitor, and alert you when a spot opens.
Already tried. Only chance is if someone drops.
The class adding system is pretty fool-proof really. All the program really has to do is monitor the table of physics classes and when the available spots goes > 0 click the checkmark in the appropriate roll then click submit. Hopefully that will work (besides, I can add and drop classes at will until tuesday so plenty of error checking possibility).
I've used WWW:Mechanize and perl to log in to my share-trading interface and scrape off values for shares I want to monitor. Not very hard to get working.
However, WWW:Mechanize doesn't do javascript. If your website doesn't gracefully degrade when looked at with javascript disabled, it won't work.
--Scythe--
I hope I did not derail the thread, read the OP again to stay on track <img src="style_emoticons/<#EMO_DIR#>/smile-fix.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile-fix.gif" /> Thanks
It's a web testing framework but you could probably use it to write your macros.
Abra: I typically use xampp ( <a href="http://www.apachefriends.org/en/xampp.html" target="_blank">http://www.apachefriends.org/en/xampp.html</a> ) when I want to do php development locally since I cba setting up Apache and PHP on a non Linux environment.