Scraping Domains
Explore how to automate web scraping of domain sales data from namebio.com using Python and Selenium. Learn to navigate multiple tables by clicking buttons, extract and save domain, price, and sale date information efficiently into a CSV file for predictive analysis.
We'll cover the following...
The website namebio.com will be scraped in this lesson. This site contains the domain name information like which domain is sold when, for what price, and where it is parked. In free mode, we can look at one-hundred data points with four columns of data which include the domain name, domain price, date it is sold, and the site where the domain is parked. The data is displayed and available in the form of a table like in the following image.
Writing the scraper
As can be seen in the above image, to get to the next table of domains, the next number button needs to be clicked and this is where the real power of selenium comes into play. Each and every button on the webpage can be clicked simply by finding its xpath and clicking the button using the click() function. Let’s see this in action.
The above code automates the ...