我正在使用const [audioFile, setAudioFile] = useState(null);
useEffect(() => {
return () => {
if (audioFile !== null) {
audioFile.unloadAsync();
}
};
}, [audioFile]);
//this function is called when sound file uri is loaded from database and assigned to audioFileToLoad
loadAudio = async () => {
try {
const soundObject = new Audio.Sound();
soundObject.setOnPlaybackStatusUpdate(onPlaybackStatusUpdate);
await soundObject.loadAsync({ uri: audioFileToLoad });
setAudioFile(soundObject);
} catch (error) {
// An error occurred!
}
};
提取Glassdoor评论。但是,我无法越过gdscrapeR
中的第一个代码:
gdscrapeR
我去了creator's blog here。该博客显示了library(gdscrapeR)
df <- get_reviews(companyNum = "E40371")
Number of web pages to scrape:
StartingError in 1:maxResults : argument of length 0
函数的细分。我认为问题出在这里:
get_reviews
我不知道该如何解决此问题。我只想提取Glassdoor评论。请帮忙!