
First and foremost thing. we need to download selenium library and chrome driver. Please follow the instructions and do it. If you will find any problems please let me know though it is a simple process. File is available in next lecture. Pls download from there.
After downloading the necessary packages , now we like to launch a website on chrome browser. After few lecures I will educate you about other browsers too like edge or firefox.
Learn how to work with the ID attribute to locate and interact with web elements using Selenium in VBA, including find by ID, send keys, and pressing enter to search.
Know the name attribute in html and how we can use it in selenium.
How to work with hyperlinks on web pages. This is done by web developers using A tag with href as their attribute. Let us see how we can click on any link using collection loops and by knowing its indexes.
Let us understand the Table structure first in HTML
How to loop through each and every table on a web page and export the table data in excel.
We are taking the inputs from user for country names and same is getting scraped from website. This is super example not only from website scraping perspective but also you will find the smart and advance way of using the loops.
What if you do not want to see every detail in a row of a table. How to hit the right td tag ignoring others.
This is not just a conceptual thing but its a very practical situation and you can be ready for it in advance.
How to scrape one particular table when you have 100s tables on a web page. Quite possible. Isnt it?
So, let us see how we can reach to the table we want to scrape and not others and not only this inside that table we can further target specific rows and data.
Apply element-specific rules to target particular table rows and scrape data from the second or third row using VBA Selenium, linking rules to the table and extracting the desired fields.
This one came from your side . Can we scrape the page from bottom to Top.
Please use this file for all rest Xpath chapters.
Xpath is one of my favorite, It can scrape anything and very useful and easy to learn.
Let us see how to obtain xpath from any element and let us understand the path as to how it is written.
Xpath can also help us in exporting the website tables. See this in this lecture
We now know very well that how xpath syntax is formed so why dont we go ahead and edit it to get different results.
Idea is you should know that you can edit the xpath and get different outputs.
How to scrape h1,h2,h3 etc tags .
How to scrape them in one go by using Xpath. Its awesome.
We often see websites which bullet points or serial numbers and paragraphs are written. In this lecture we are learning to export the comments or those paragraphs using li tags. Li means list tag.
How to work with unordered list tags and ordered list tags.
Please note: Excel file attached here will be used for next list related lectures too. So, please follow the same till part4
How to avoid running A TAG loops and directly click on any link by knowing its word only
We can click on web links even by finding the partial word instead of exact word. This is amazing knowledge to learn.
Load a page with today's date using selenium, locate the date text on a BBC page, and ensure the current date appears by clicking the right link.
This one very simple. How to select an item from a combobox or drop down using text, index and value methods.
Tackle practical VBA Selenium web scraping tasks with hands-on training, learning to inspect and select elements, handle clicks, and build reliable automated web interactions.
How to select listbox values using select element class and why it cannot be webelement class.
Little introduction on methods and property of a class.
Learn to work with multi-select list boxes in VBA Selenium by identifying the correct select element, its name attribute, and selecting items like Visa and MasterCard.
Learn to automate list box interactions in VBA Selenium by selecting all or only chosen options through a select element collection, iterating options, and exporting values.
Learn to use xpath with variables to scrape data across multiple pages in a VBA selenium workflow, and implement a variable-driven loop to navigate pagination and export results.
Discover how to make calendar popups disappear in Selenium by clearing the date field and clicking outside to shift focus with driver commands.
If you like to learn Basic to super Advance excel , Excel VBA, Bi or PowerPivot or PowerQuery or M code or MS Access and its VBA ,these links will help you a lot. My every course will teach you from very basics and it will have tons of practical examples.
In this Part1 you shall learn below written things. Please go through them.
We are going to learn Webscraping using google chrome and it will be done using selenium library.
Learn how to download selenium and browser drivers to first initially do the setup.
How work with attributes like name, id using findelement methods.
How to work with tags like A tag and its attribute href to click on the links.
How to use class attribute and is it a good approach to use class attribute.
how to work with Xpath to insert the data into textboxes and click on search buttons. Not just use but understand the structure of Xpath as well.
Learn how we can change the xpath elements by their indexes.
How to work with header tags like h1 or h2 or h3 using normal way and using xpath.
How to run the collection loops and why we need it and when we can avoid using collection loops.
What is difference between Web-element and Webelements and why we use set word for collection elements and not for single object.
How to click on links on webpage using link -text and partial link text property. Based on this knowledge one mini project -how to load website by default on current date.
How to scrape tables and its rows and rows data values and table headers.
Collection loops design and execution from very start while working with tables.
Do you like to export all tables in a website or do you want to scrape one specific table only, How to reach out to specific index of a table then.
How to scrape specific rows inside one specific table . Know your "tr' tags.
How to scrape all data insider rows or just one specific data value using td tag. Its awesome when you have so much control.
How to export tables with out running collection loops and what is the difference between direct export and export using loops. You must know.
How to work with li tags inside unordered and ordered lists.
Know how to insert a value in drop down or combo-boxes .
How to select items in list box with single select property or multi select property.
Learn to select or de-select listbox options using collection loops or without the loops.
How to alter the collection elements by referring to one object and second inside the first one and so on.