Tuesday 15 March 2011

Python api request -


I'm new to receiving data using APIs and trying to get names of supporting teams

This is what I have tried which does not work I just want the nickname and name for NBA teams

EDIT: I updated the URL. Now I need to know how to remove the names and names of teams

  urlib2 import request, urlopen, URLError request = request ('http://api.cbssports.com / Response = urlopen (request) teams = response.read () except the URLError print team, e: print 'error:', e   / pre> 

You need an access token to use API.


No comments:

Post a Comment