GitHubTrending icon indicating copy to clipboard operation
GitHubTrending copied to clipboard

new GitHubTrending().fetchTrending(URL) 获取的data 数据为空数组

Open ml0107 opened this issue 6 years ago • 2 comments

import GitHubTrending from 'GitHubTrending' const URL = 'https://github.com/trending/javascript?since=daily' componentDidMount(){ new GitHubTrending().fetchTrending(URL) .then((data)=> { console.log(data); // 打印为[] }).catch((error)=> { // }); } // 插件版本 "react": "16.8.3", "react-native": "0.59.8", "GitHubTrending": "^3.0.1", 刚学react-native 求解释

ml0107 avatar Jun 13 '19 03:06 ml0107

github trending页面结构换了 爬不到数据了,他的工具包应该更新了

XYH1996 avatar Jun 16 '19 03:06 XYH1996

github trending页面结构换了 爬不到数据了,他的工具包应该更新了

是的 我去GitHubPopular这个项目看来代码 他的是3.0.2 谢谢提醒

ml0107 avatar Jun 18 '19 03:06 ml0107