python error parsing json
<p>I'm trying to parse the information found in this link here:     <a href="http://stats.nba.com/stats/playergamelog?DateFrom=&amp;DateTo=&amp;LeagueID=00&amp;PlayerID=203518&amp;Season=2016-17&amp;SeasonType=Pre+Season" rel="nofollow">http://stats.nba.com/stats/playergamelog?DateFrom=&amp;DateTo=&amp;LeagueID=00&amp;PlayerID=203518&amp;Season=2016-17&amp;SeasonType=Pre+Season</a></p>

<p>What I want to pull is the information under rowSet (so 0, 1, 2, etc will be one entry)   <a href="https://i.stack.imgur.com/aW5cS.png" rel="nofollow"><img src="https://i.stack.imgur.com/aW5cS.png" alt="enter image description here"></a></p>

<p>Code I'm using: </p>

<pre><code>import requests
urlPlayerLog = "http://stats.nba.com/stats/playergamelog?DateFrom=&amp;DateTo=&amp;LeagueID=00&amp;PlayerID=203518&amp;Season=2016-17&amp;SeasonType=Pre+Season"
responses = requests.get(urlPlayerLog)
dataGameLogs = responses.json()['resultSets'][0]['rowSet']
</code></pre>

<p>This was working for me for months and then one day I kept getting the following error:
<a href="https://i.stack.imgur.com/WXYXt.png" rel="nofollow"><img src="https://i.stack.imgur.com/WXYXt.png" alt="enter image description here"></a></p>

<p>Which made me think the issue was with dataGameLogs = responses.json()['resultSets'][0]['rowSet'] , but unsure why that is returning an error...</p>

<p>The webpage might be expecting a web browser to request the data from the URL. Try adding a user-agent to your request.</p>

<pre><code>import requests
HEADERS = {'user-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:35.0) Gecko/20100101 Firefox/31.0'}
urlPlayerLog = "http://stats.nba.com/stats/playergamelog?DateFrom=&amp;DateTo=&amp;LeagueID=00&amp;PlayerID=203518&amp;Season=2016-17&amp;SeasonType=Pre+Season"
responses = requests.get(urlPlayerLog, headers=HEADERS)
dataGameLogs = responses.json()['resultSets'][0]['rowSet']
</code></pre>

python json django