Live data from Hacker News

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

twilio.com

141–150 of 163 posts

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

#141
post #52

Earlier quoted context omitted.

Yeah you can sends texts to your phone just like sending an email.

How to do that?

I am using Telegram for such notifications. I made a simple Telegram bot, it does not do anything itself, I just use it as a sender of my messages to my phone. And I have a particular web address, which collects requests from any of my scripts and it just resends it (it is a simple python script) through the bot to me.

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

#142

Earlier quoted context omitted.

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

Do they work? For Portugal it still lists Telecel - which hasn't existed since '99.

My list is accurate as of a year or so ago, or at least they don't bounce back when you send an email to them.

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

#143

Earlier quoted context omitted.

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

Do they work? For Portugal it still lists Telecel - which hasn't existed since '99.

[deleted]

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

#144
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…

The distill browser add-on will work for this too, except for the phone call. SMS is a paid feature but email and popup notifications are free.

And maybe also the fact that the computer and browser has to be open all the time, right?

I believe OP did this by running a cron or so on an always-on server.

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

#145
post #122

Earlier quoted context omitted.

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.

Maybe in your world that works. Until the FCC develops redevelops any sort of interest in dealing with scammers, my phone is basically useless for most of the world to speak to me. If you're trying to reach me and are not on my list of approved callers, you can email me, or decide you didn't actually want to talk to me. (No, I don't use FB Messenger or related spyware, either.) On the other hand, I apparently pay muc…

One of the points of email is that it is asynchronous communication. You can even respond in batches like RMS does. While everyone's email workflow is different, it would be a mistake to assume that email was ever designed to be used as an instant-messaging-style communication tool.

IRC exists for a reason.

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

#146
post #26

Now just figure out a way to sell the whole solution back to the university, and you'll have paid for your tuition fees.

Sounds like the quickest way to get a call from the university's IT department…

It's the IT department he should be selling it to.

It sounds like exactly the sort of service they should be providing.

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

#147
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…

SMTP is not an instantaneous protocol. Email prioritizes reliability over speed when it comes to delivery. An email alert could very well be delayed to the point that it becomes useless for something which is time sensitive.

Given the synchronous nature of a phone call, it seems like the perfect medium for this kind of alert. Similarly, SMS piggybacks off of the same network and therefore inherits some of the same properties.

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

#148
post #43

I did this for one of my classes as well. But since it was just a one off, I just put this bash script in a cron job on a free-tier AWS ec2. It just did a quick and dirty parse of the html, which for my university wasn't behind a login wall. $seats="$(curl $URL | sed \"140qd\" | sed -nE \"s/ | //gp\")" if [ $seats -gt 0 ]; then echo "Go register for class $URL" | msmtp -a "default" $EMAIL fi

Yep. This is what I did. Also, I just used the email address for my phone's SMS. I'm not sure why you need Twilio for this, seems like over kill to me.

The email-to-sms gateway for AT&T was very unreliable for me.

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

#150
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…

Greg from Twilio here. Congrats on your immigration! Glad we could play a small part in that journey, but credit goes to you for your courage and creativity. Would love to hear more of your story. Would you mind dropping me a note at gb@twilio.com?

Sounds like an amazing case study. Just looked/stalked your profile and ended up watching your talk on "Developers, entrepreneurs and depression"[1]. Really inspiring and awesome!

[1] https://vimeo.com/78419167

Post reply on HN