Building a website scraper
In fact, it is just a shopping-cart with some content. All the results data and scripts which we will describe you can get from the article GitHub repository.
Our ultimate goal is to get the information about these products in a format that works for us and is easy to get in the future (Google Sheet, for example).
You can also watch a demonstration how it works life on this TikTok video.
With document.querySelectorAll('div.card.mb-3') we receive a NodeList from all these items.
If you paste the script in browser console like this:
And just press Enter, you will get the result file downloaded to your pc, and you can open it directly. Such an approach is good but has some cons – it cannot be started automatically – for example from cronjobs or pipelines.
• Wide range of learning tracks for beginners and experienced developers
• Study at your own pace with your personal study plan
• Focus on practice and real-world experience