How to check if groceries are in stock and automatically buy them with R
Background Anyone who's bought groceries online recently has seen the huge increase in demand due to the COVID-19 outbreak and quarantines. In this post, you'll learn how to buy groceries on Amazon using R! To do that, we'll be using the RSelenium package. In case you're not familiar, Selenium is a browser automation tool. It works like a normal browser, except that you write code to perform operations, such as navigating to websites, filling in forms online, clicking links and buttons, etc. This way, it's similar to writing a macro in Excel - except for a web browswer. Several different languages, including Python and R, have packages that allow you to use Selenium by writing code in their language. R's package for this, as mentioned above, is RSelenium. Getting started…