I need a python script to perform a GET request on 2 urls.
I will use these scripts in a cron job on my ubuntu server.
The catch is, the 2 calls have to happen sequentially because the first GET request to Url#1 might take up to 1 minute or so to complete.
For the cron job, I want it to run every 30 minutes.
I’m not sure if I’m missing something in your question. But it should be fairly simple with urllib2:
See the page, urllib2 The Missing Manual for more help with the urllib2 module.