title: https get request with python urllib2
body: <p>I am trying to fetch data from quandl using urllib2.Please check code below.</p>
  
  <pre><code>import json
  from pymongo import MongoClient
  import urllib2
  import requests
  import ssl
  #import quandl
  codes = [100526];
  for id in codes:
      url = 'https://www.quandl.com.com//api/v3/datasets/AMFI/"+str(id)+".json?api_key=XXXXXXXX&amp;start_date=2013-08-30'
      req = urllib2.Request(url)
      response = urllib2.urlopen(req)
      data = response.read()
      print data
  </code></pre>
  
  <p>OR</p>
  
  <pre><code>for id in codes:
      url = "https://www.quandl.com.com//api/v3/datasets/AMFI/"+str(id)+".json?api_key=XXXXXXXX&amp;start_date=2013-08-30"
      request = requests.get(url,verify=False)
      print request
  </code></pre>
  
  <p>I am getting HTTPERROR exception 404 in 1st case. and when I use request module I get SSL error even after using verify=false. I am looking through previous posts but most of them are related to HTTP request.</p>
  
  <p>Thanks for help.
  J</p>