title: urllib.error.HTTPError: HTTP Error 404: NOT FOUND
body: <p>I'm trying to run a script to grab dada from an API and feed to a mongodb database. And I keep getting this error but if I test one sing url it works.</p>
  
  <p>Any suggestions?</p>
  
  <p>full script <a href="http://pastebin.com/Xap5vYYC" rel="nofollow">http://pastebin.com/Xap5vYYC</a></p>
  
  <pre><code>Traceback (most recent call last):
    File "hmsParser.py", line 112, in &lt;module&gt;
      smReply = urlopen(smUrl).read().decode("utf8")
    File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/urllib/request.py", line 162, in urlopen
      return opener.open(url, data, timeout)
    File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/urllib/request.py", line 471, in open
      response = meth(req, response)
    File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/urllib/request.py", line 581, in http_response
      'http', request, response, code, msg, hdrs)
    File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/urllib/request.py", line 509, in error
      return self._call_chain(*args)
    File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/urllib/request.py", line 443, in _call_chain
      result = func(*args)
    File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/urllib/request.py", line 589, in http_error_default
      raise HTTPError(req.full_url, code, msg, hdrs, fp)
  urllib.error.HTTPError: HTTP Error 404: NOT FOUND
  </code></pre>