For our example, we will be logging in to our Amazon account and scraping the price off each order in the previous year, then adding them all up to show us our total Amazon expenditures over that period of time.
A combination of UI automation and scraping will allow us to first log in to the platform, and then to retrieve the information about all our orders.
⚠️ This example is only intended for learning purposes. Always make sure the website you are planning to scrape allows such behaviour.
Run the above examples as follows, making sure to choose the right Amazon URL and currency:
Under the hood, Amazon can change quite quickly. You might need to adjust the locators and/or flow slightly to have the script work for you.
⚠️ Websites might restrict headless browser traffic in order to protect their users from fraud. 2FA will also interfere with the script if enabled.