Live data from Hacker News

How I Hacked My University's Registration System with Python and Twilio

twilio.com

101–110 of 163 posts

Re: How I Hacked My University's Registration System with Python and Twilio

#101
post #93

I did the same thing at UCSB 10 years ago to constantly poll for seats opening up in a class. This was back when GOLD was a primitive web interface that was clearly screen-scraping an IBM AS/400 terminal app. I used python and twill--put values into forms (no JavaScript and the form IDs never changed), login, search for the class, and scrape.

Same at UCSC, I even considered trying to monetize the script given what an atrocious system it was.

Re: How I Hacked My University's Registration System with Python and Twilio

#102

Earlier quoted context omitted.

Put the phone number in front of a domain for each carrier, a list is here. https://github.com/WilliamFCipriano/FreeSMS/blob/master/data...

Thanks, this hack (if it's a hack) looks interesting.

It works, but know that it is nowhere as reliable as an SMS sent through a carrier's gateway.

Re: How I Hacked My University's Registration System with Python and Twilio

#103

Earlier quoted context omitted.

How to do that?

Put the phone number in front of a domain for each carrier, a list is here. https://github.com/WilliamFCipriano/FreeSMS/blob/master/data...

There are several international lists too, here's a couple:

https://martinfitzpatrick.name/list-of-email-to-sms-gateways...

https://www.opentextingonline.com/emailtotext.aspx

Re: How I Hacked My University's Registration System with Python and Twilio

#104
post #65

Earlier quoted context omitted.

My university switched to that for some (mostly optional) classes. This resulted in a lower attendance rates because as a student you end up registering for pretty much everything instead of one or two classes you really want. There was a system in place to fill the empty seats with students still in the waiting queue by the second session but most students already got into other classes and just didn't remove themse…

Okay, so what about this: Students rank their course preferences in an order and submit it. For each course, free seats are first allocated to the students who ranked it as their first choice, then what is left to the students who ranked it as a second choice, and so on until the round n and there are less seats available than people who ranked the course as their n th choice: the remaining seats are allocated by a l…

You might be interested in bidding systems for enrolling in courses. The National University of Singapore has one http://www.nus.edu.sg/registrar/events/module-enrolment.html

"All students are given an equal amount of points per semester to bid for modules... The allocation of modules is based on the lowest successful bid points against the last available quota for the module at the end of each bidding round. If supply (module quota) exceeds demand (number of bidders) for a module for any bidding round, the lowest successful bid will be 1 bid point. If there is a tie in the lowest successful bid points, the outcome will be based on first-come-first-served. Unsuccessful bidders will be fully refunded. Any unused bid points after each round will be carried over to the next bidding round or to the next semester at the end of the registration exercise."

Re: How I Hacked My University's Registration System with Python and Twilio

#105
post #35

Need to be careful about this one. A student at my alma mater was suspended for doing the same thing: https://www.reddit.com/r/ucf/comments/xo5ye/ucf_student_pena... You have to love the education system...

In your example, he was charging for the service, which was against the terms of use of the web site he was scraping. So in general, do be sure to not violate a site's terms, but I don't see what that point has to do with your final comment...

What a horrible university. If a system is so bad that people will pay for the improvements, they are doing it wrong.

Re: How I Hacked My University's Registration System with Python and Twilio

#106

Earlier quoted context omitted.

In your example, he was charging for the service, which was against the terms of use of the web site he was scraping. So in general, do be sure to not violate a site's terms, but I don't see what that point has to do with your final comment...

What a horrible university. If a system is so bad that people will pay for the improvements, they are doing it wrong.

I don't think "people will pay for " is justification for "any university that doesn't do is horrible".

Re: How I Hacked My University's Registration System with Python and Twilio

#107
post #41
post #25

I was in the US and want to immigrate to Canada because of US broken H1B immigration system ( for me it will take 9 years to get a greencard). Here is what I did - The immigration website of Saskatchewan province opens up randomly to apply for immigration. I missed it many times because there is no indication other than the "Apply" button being enabled and a small text in their homepage which says "Applications are n…

Nice story, and great that Twilio worked out for you - but this really is the sort of thing that email alerts (or IM alerts, or IRC alerts) should also work fine for. I would argue that the fact that you find SMS/phone calls a more urgent alert is a fault with your phone/communication setup - and twilio is an interesting hack around that. But there really should be an easy way to make just as much ruckus from a simpl…

If you treat emails with the same urgency you give phone calls, I would argue there's a fault in your phone/communication set up. For most people I know, email can wait an hour or two, or even overnight. Phone calls require you to choose to ignore them.

Re: How I Hacked My University's Registration System with Python and Twilio

#108
post #100

For the curious, if you just want to one-off this for yourself, you probably don't need twilio to do it. Most carriers have a special domain that if you send email with the recipient's phone number, it turns into a text. I've got Verizon and its as simple as this from the command line: echo 'Text message text' | mail -s 'Subject will display in braces in the message' -a 'From: Myserver@Mydomain.com' 'number@vtext.com…

Is the SMS free? If not, who pays for it?

In the US, the recipient pays for texts.

Re: How I Hacked My University's Registration System with Python and Twilio

#109
post #100

For the curious, if you just want to one-off this for yourself, you probably don't need twilio to do it. Most carriers have a special domain that if you send email with the recipient's phone number, it turns into a text. I've got Verizon and its as simple as this from the command line: echo 'Text message text' | mail -s 'Subject will display in braces in the message' -a 'From: Myserver@Mydomain.com' 'number@vtext.com…

Is the SMS free? If not, who pays for it?

Well, it depends on your phone plan. If you have unlimited texting, then yeah its "free" (and you pay as a part of your monthly phone bill), if you pay per text, you pay whatever the rate for an SMS message is.

Re: How I Hacked My University's Registration System with Python and Twilio

#110
post #41

Earlier quoted context omitted.

Nice story, and great that Twilio worked out for you - but this really is the sort of thing that email alerts (or IM alerts, or IRC alerts) should also work fine for. I would argue that the fact that you find SMS/phone calls a more urgent alert is a fault with your phone/communication setup - and twilio is an interesting hack around that. But there really should be an easy way to make just as much ruckus from a simpl…

> I would argue that the fact that you find SMS/phone calls a more urgent alert is a fault with your phone/communication setup Doesn't the asynchronous nature of an IM make it less urgent than a synchronous phone call?

The industry I'm in is all SMEs - they regularly complain about people messaging them [ie SMS, aka "text"] out of work hours. Like "a customer texted me at 9pm about something how inconsiderate". They don't seem to understand it's absolutely considerate and that the idea is they respond when they next want to make themselves available. Mind you some people will get annoyed if they're not texted back straight away; why they don't then phone I'm not sure.
Post reply on HN