Avatar image for diegoamundo
#1 Posted by diegoamundo (2 posts) - - Show Bio

Hey there, I'm trying to access the comicvine api. The url works in my browser, but not python. A sample url for this is:

http://comicvine.gamespot.com/api/search/?format=json&api_key=[my_api_key]&query=dick+grayson&resource_type=character

which I'm trying to access in python with requests.get('http://comicvine.gamespot.com/api/search/',params = {'api_key':[my_api_key],'query':'dick+grayson','resource_type':'character','format':'json'}.

It gives me a 403 status code. Unsure why it isn't working.