How to Scrape Data Using Python and Selenium

The Beginners guide for web scarping

Dipen Sherpa
2 min readDec 22, 2024

Introduction

In this article, we will learn about scrape world population data from Wikipedia and filling the registration form using selenium. This guide walks you through automating data extraction, saving it in a structured format, and automate the filling process. Perfect for beginners in web scraping!

Project 1: World Population

In this project, we explore web scraping by extracting table data from Wikipedia. Almost in the every websites data are contain inside the <tr> tag which contain many <td> tags. We will know how to extract it and we will gather the list of countries and territories by total population and save it into a CSV file. This data can be used for analyzing populations and identifying trends.

Github

Extracting Data from Wikipedia

Project 2: Filling the form of website

In this project, we will use a Python script to automate form filling and complete the registration process. Specifically, we will learn how to locate required sections on a website and input data by identifying their attributes such as ID, name, value, or XPath.

Github

Filling registration form

--

--

Dipen Sherpa
Dipen Sherpa

Written by Dipen Sherpa

Python Developer and web scraper exploring data extraction and automation tools

No responses yet