crubba / Wiley-ADCR

Repository for the book "Automated Data Collection with R"
41 stars 76 forks source link

Amazon html codes changed,Please tech me,thanks. #16

Open woshiisp opened 4 years ago

woshiisp commented 4 years ago

https://github.com/crubba/Wiley-ADCR/blob/97f1e4ec88cad81b039e7ab6bb5e58091aba18d5/ch-16-amazon/ch-16-amazonScraper%201%20Exploration.r#L63

These codes could not run: xpath <- paste0('//span[@class="refinementLink" and text()="', keyword,'"]/../@href') restrictedSearchPageLink <- xpathApply(parsedFirstSearchPage, xpath)

I had run a while,the results is NULL.