import os
import shelve
import urllib
import urlparse
import sys
import shelve
import oauth2 as oauth
import requests
api_key = 'xyz'
url = 'https://www.googleapis.com/freebase/v1/mqlread?query=hello&key=xyz'
resp, content = requests.request(url, "GET")
print resp
I’m just testing the freebase api. When I run this basic script, I got this error: requests.exceptions.MissingSchema: Invalid URL ‘GET’: No schema supplied
Any reasons why?
I believe what you are looking for is this:
From the Requests documentation
So, you need to give the arguments in the right order.