![]() The appropriate Type of your ‘Data’ Selector.Here comes the delicate part as you have to select:.In Id, name your Selector such as ‘ product_description’.You still need to select the data that you want to extract, and you will be ready to launch your Web Scraping.Īs for the ‘page’ Selector, you will need to build a ‘Data’ Selector:.You just created a Loop through all Amazon’s webpages present in the category ‘School Bags’. Note: In this case, as we are going to create a Loop through the web pages by repeatedly going to the Next page (until the last one), it’s important to select ‘page’ in addition to ‘_root’ as Parent Selectors given that every new page will be the Child of the Previous page and the Parent of the Next page. In Parent Selectors, make sure that both ‘_root’ and ‘page’ are selected.Click on ‘Done selecting’ (green button).If done correctly, the element ‘Next’ will be highlighted in Red. ![]() Then click on ‘Next’ (page) on Amazon’s webpage.A selection command should appear at the top of the Dev Tools toolbar. As Type of Selector, select the ‘Pagination (Beta)’.In Id, give a name to your Selector, for instance ‘ page’.Let’s start with the ‘page’ Selector that will guide your Web Scraper to navigate from page to page: Now you can create your Selectors, which are the elements that the Web Scraper will use to interact with the website.In Start URL, copy/paste the URL of the current webpage that will be your URL root for this Sitemap.Note: The name of your Sitemap cannot contain any upper case.In this case, let’s call it ‘amazon_bag’. Open your Dev Tools and click on your ‘Web Scraper’ option.Go to Amazon’s webpage 1 presenting the School Bags:.First, you have to create a Sitemap, which is the structure (or ‘map’) of the pages and information that your Web Scraper will go through to extract the data:. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |