small fix

Thanks for the note. It looks like something changed either with the USGS service (no longer accepts POST method), or the default behavior of urlib2. I have made changes to the script that result in the original behavior, specifically forcing urlib2 to send a GET request:

# see the code above for the complete set of commands
get_url = url + '?' + data
req = urllib2.Request(url=get_url, headers=headers)

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <div> <img> <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.