I ultimately want to get data from this page:
http://www.canadapost.ca/cpotools/apps/track/personal/findByTrackNumber?trackingNumber=0656887000494793
But that page forwards to:
http://www.canadapost.ca/cpotools/apps/track/personal/findByTrackNumber?execution=eXs1
So when I use open
(open-uri) to try and fetch the data, it throws a RuntimeError
error saying HTTP redirection loop:
So I'm not really sure how to get that data after it redirects and throws that error.