Skip to content

Instantly share code, notes, and snippets.

@aspender
aspender / iphone_uk_availability_checker.py
Created December 2, 2014 12:10
Check the Apple UK iPhone availability checker for a set of stores and SKUs and sent alerts to Slack when availabile
#!/usr/bin/env python
import urllib2
import json
# stores and skus found from https://reserve.cdn-apple.com/GB/en_GB/reserve/iPhone/availability
stores = {
"R245": "Covent Garden",
"R092": "Regent St"
}

Keybase proof

I hereby claim:

  • I am aspender on github.
  • I am aspender (https://keybase.io/aspender) on keybase.
  • I have a public key whose fingerprint is 9F1F 13B8 8E0E BCFC FDD0 A11B 4DF1 BF6E B78C EAA8

To claim this, I am signing this object:

@aspender
aspender / ticket_watch.pl
Created June 23, 2012 21:39
Perl script to check if tickets for a specific London 2012 Olympics session are currently available
#!/usr/bin/perl -w
use Getopt::Std;
# Define the address the alerts should come from
$monitor_email = "monitor@monitor.com";
$monitor_url = "http://www.tickets.london2012.com/browse?form=session&tab=oly&sessionCode=";
# Define global variables