Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where does this data come from? #1

Open
kwinrowjr opened this issue Feb 22, 2017 · 5 comments
Open

Where does this data come from? #1

kwinrowjr opened this issue Feb 22, 2017 · 5 comments

Comments

@kwinrowjr
Copy link

Where does this data come from?

Is the below all that can be pulled? If not, what else what I pull?

pullup_address ="http://stats.nba.com/js/data/sportvu/pullUpShootData.js",
drives_address ="http://stats.nba.com/js/data/sportvu/drivesData.js",
defense_address ="http://stats.nba.com/js/data/sportvu/defenseData.js",
passing_address ="http://stats.nba.com/js/data/sportvu/passingData.js",
touches_address ="http://stats.nba.com/js/data/sportvu/touchesData.js",
speed_address ="http://stats.nba.com/js/data/sportvu/speedData.js",
rebounding_address ="http://stats.nba.com/js/data/sportvu/reboundingData.js",
catchshoot_address ="http://stats.nba.com/js/data/sportvu/catchShootData.js",
shooting_address ="http://stats.nba.com/js/data/sportvu/shootingData.js"

@Fossj117
Copy link
Owner

Fossj117 commented Feb 22, 2017 via email

@Fossj117
Copy link
Owner

Here's the screenshot that didn't come through from email:

image

@kwinrowjr
Copy link
Author

man oh man, this is perfect thanks a lot

@Fossj117
Copy link
Owner

@kwinrowjr cool no problem. If you wind up putting together a script to pull this data, feel free to add it here so others can use as well. I might do that if you don't

@kwinrowjr
Copy link
Author

kwinrowjr commented Feb 24, 2017

ok I plan to, I got some of what I am trying to do working but stuck on other parts. So basically I am trying to find a way to reference the individual player game logs by using the player name. When I go to the url: http://stats.nba.com/players/gamelogs/, I am able to click on the advance filter option. The to and from dates are able to be referenced from the request url but my issue is with the custom filter option. This is what I am trying to code below and it does not work, it does not show in the request url.

Code:

$(function() {
function loadStats() {
	
  $.ajax({
    url: 'http://stats.nba.com/players/gamelogs/'#!?&callback=?',
    jsonpCallback: 'jsonReturnData',
    dataType: 'jsonp',
    data: {
      CF: 'PLAYER_NAME*E*James Harden',
	  Season: '2016-17',
	  SeasonType: 'Regular Season',
      format: 'json'
    },
    success: function(response) {
      console.log(response);  
    } //success
  }); //AJAX Call
} 

loadStats();
}); 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants