wwayne / react-native-nba-app

This is why we play
MIT License
2.23k stars 512 forks source link

where are datas in the app from? #28

Open binbinla opened 6 years ago

binbinla commented 6 years ago

hello,I'm confused about where your datas in the app from?Can you please tell me about this?

wwayne commented 6 years ago

@binbinla It was scraped from the official NBA.com https://github.com/wwayne/react-native-nba-app/blob/master/app/channel/address.js#L18 I'm not sure if it is still available

ghost commented 6 years ago

Its still available Sample: http://data.nba.com/data/json/cms/2017/league/standings.json

binbinla commented 6 years ago

Thanks a lot

binbinla commented 6 years ago

@wwayne Hello , I was trying to scraped datas from the website you offered in https://github.com/wwayne/react-native-nba-app/blob/master/app/channel/address.js#L18 . Here is the problem : I used window.fetch(url) to finish the network request , it worked for the website started with 'http://data.nba.com/' , but it didn't work for the website started with 'http://stats.nba.com/' . I couldn't figured out why , could you please help me point out . Thanks.

wwayne commented 6 years ago

@binbinla Sorry I have no idea for that, it may relate to the NBA official websites security policy, I would suggest you use whatever works for you