W
Web Scraping with Selenium
This is a small project in which I have worked with Selenium and Chrome Drivers to automate a small task.
6
Created on 26th February 2023
•
W
Web Scraping with Selenium
This is a small project in which I have worked with Selenium and Chrome Drivers to automate a small task.
The problem Web Scraping with Selenium solves
Task to automate
- To extract normal transactions from the link: https://bscscan.com/txs
- Store them in
json
fromat
Installation
To install Selenium for Python
run
pip install selenium
in the terminalChrome Driver needs to be downloaded based on your browser version
-
Open Chrome browser in the desktop
-
Open Settings in Chrome
-
Click on About Chrome and check your version
-
Visit https://chromedriver.chromium.org/downloads and download Chrome Driver for your version
Reference links
- Selenium - Getting started: https://www.selenium.dev/documentation/webdriver/
- Chrome driver - Getting started: https://chromedriver.chromium.org/getting-started
Challenges I ran into
It was a bit difficult to figure out proper xpath of the element to scrape the right data as the data on website was in the form of html <table>, with some of <td> containing no data. In that case I had to carefuly observe the pattern in <td> tags containing data otherwise it lead to an error.
Technologies used
Discussion
Builders also viewed
See more projects on Devfolio