Live data from Hacker News

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

twilio.com

71–80 of 163 posts

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

#72
post #60
post #56

Earlier quoted context omitted.

"Just like a lifeboat, the US can't let everyone in at once or we'd sink." Actually, the consensus among economists is that immigration makes your own economy better off. It has a net positive effect on productivity and prosperity. In other words, your "rate-limiting" analogy makes zero sense. You want more immigration, not less.

» In other words, your "rate-limiting" analogy makes zero sense. You want more immigration, not less. How's that working out for Germany?

Working well, generally:

http://fortune.com/2015/09/08/germany-migrant-crisis/

>The 6.6 million people living in Germany with foreign passports paid $4,127 more in taxes and social security on average than they took in social benefits in 2012--generating a surplus of 22 billion euros that year, according to one report

More recently:

https://qz.com/901076/what-effect-did-the-record-influx-of-r...

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

#75
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.

Did the same thing for an apartment hunt several years ago (one particular realtor had all the best stuff going up on a personal site) and also just notified via email. This is done the way that it is by their content marketing department.

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

#76
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'

This ended up working faster than Twilio for me. (Less than 10 seconds from enter key to text on phone).

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

#77
post #56
post #46

Earlier quoted context omitted.

> because of US broken immigration system Immigration is working just fine: It is a rate-limiting mechanism to prevent massive immigration of every "me too" person from other random countries. You're just like everyone else, and everyone else wants to get in, too. Just like a lifeboat, the US can't let everyone in at once or we'd sink. Buy a parka and enjoy Canada!

"Just like a lifeboat, the US can't let everyone in at once or we'd sink." Actually, the consensus among economists is that immigration makes your own economy better off. It has a net positive effect on productivity and prosperity. In other words, your "rate-limiting" analogy makes zero sense. You want more immigration, not less.

Do you have a source. Do these economists say there should be no limits on immigration?

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

#78

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…

Your number is now on hacker news!

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

#80

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…

Your number is now on hacker news!

Just saw that. Yowzer... damn clumsy of me! (Thankfully a published work number but still!)
Post reply on HN