Calling the mixpanel API never returns a response
Question: When I use the following Python code to call the Mixpanel API, I never get a
response.

    
    
    import requests
    requests.get("https://data.mixpanel.com/")
    

But when I try in the browser it works fine. (I get the following response:
`{error: "Not Found"}` which is expected.)

Why is this? Or what can I do to locate the problem?

**Edit:**

  * After a while I get the following error:

ConnectionError: HTTPSConnectionPool(host='data.mixpanel.com', port=443): Max
retries exceeded with url: / (Caused by : [Errno 54] Connection reset by peer)

  * urllib2 also does not return any response.


Answer: OP: Are you harnessing the response struct from requests.get ? What do you get
when you run:

    
    
    import requests
    result = requests.get("https://data.mixpanel.com/")
    print result.text
    

(requests.get returns an object that you can then query ...)

Be sure to see: <http://docs.python-requests.org/en/latest/> for more examples
of how to use the requests library.

