react-native-nba-app icon indicating copy to clipboard operation
react-native-nba-app copied to clipboard

where are datas in the app from?

Open binbinla opened this issue 8 years ago • 5 comments

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

binbinla avatar Nov 27 '17 02:11 binbinla

@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

wwayne avatar Nov 27 '17 03:11 wwayne

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

ghost avatar Dec 05 '17 07:12 ghost

Thanks a lot

binbinla avatar Jan 18 '18 04:01 binbinla

@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.

binbinla avatar Apr 20 '18 05:04 binbinla

@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

wwayne avatar Apr 20 '18 07:04 wwayne