Skip to content

A bot that scrapes historical data of a currency's exchange rates, using Selenium, pandas and ChromeDriver

Notifications You must be signed in to change notification settings

KostaSav/Scraping-Bot-with-Selenium-and-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

ScrapingBot

A scraping bot with python using the selenium library and pandas.
Based on How to Code a Scraping Bot with Selenium and Python.

Installation

pip install selenium
pip install pandas
pip install lxml
  • Google Chrome
  • ChromeDriver (make sure it matches the browser's version)
    Extract executable in C://Users//{username}//AppData//Local//Programs//Python//Python{version} or C://Program Files[(x86)]?//Python{version}, depending on where you installed Python

Debugging

Bugs

  • Sometimes (but not consistently), the website will show a "Subscribe to newsletter" popup, which will break the iteration and the program will run again

TODO

  1. Convert XPATH scraping to ID/CLASS/NAME, etc.
  2. Return data for multiple currencies
  3. Update function that receives an existing dataframe and returns historical data up to today

About

A bot that scrapes historical data of a currency's exchange rates, using Selenium, pandas and ChromeDriver

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages