title: Access denied to a website using tor
body: <p>I am trying to make a bot that requests a url through tor. I have configured tor.
  Below is the python code.</p>
  
  <pre><code>import pycurl
  curl = pycurl.Curl()
  curl.setopt(pycurl.URL, URL)
  curl.setopt(pycurl.PROXY, '127.0.0.1')
  curl.setopt(pycurl.PROXYPORT, 9050)
  curl.setopt(pycurl.PROXYTYPE, pycurl.PROXYTYPE_SOCKS5_HOSTNAME)
  curl.perform()
  </code></pre>
  
  <p>It gives html file with, access denied | url used cloudflare to restrict access.</p>
  
  <p>But when the same url is accessed through browser with tor configured, the url is successfully accessed.</p>
  
  <p>Is there a way out to access the URL using the python script?</p>
  
  <p>Thanks</p>