What’s the best way to handle web scraping in R for beginners? or How can I improve my web scraping i

22 Replies, 1026 Views

rvest is good, but web scraping in R gets easier with practice. For selectors, sometimes XPath works better than CSS. Use `rvest::html_nodes(xpath = "...")` if CSS fails.

403s? Sigh. Try `curl` package for more control over requests. Or just... pick another site lol.

And yeah, google is your friend. But also, the `rvest` vignettes are gold.

Messages In This Thread



Users browsing this thread: 1 Guest(s)