Please perform web scraping responsibly without causing harms to the website.
This is a bot/spider that collect the exchange rate of foreign currencies to Malaysia Ringgit (MYR) using Python Scrapy framework. This project is a revamp of the same exchange rate spider program that I have done in my job back in 2020 using Selenium. By using Scrapy, it becomes more lightweight and efficient to collect data.
The data source is from the below websites/API:
$ pip install Scrapy
- Git clone this project.
git clone https://github.com/jygan0328/exchange_rates_spider.git
- Create a virtual environment (conda/venv) and install package in
requirements.txt
. - Run the command in the project directory.
python crawl.py
- The data collected are stored in
sqlite3
database in project directory. You may change to use any other DBMS by changingCONNECTION_STRING
in settings file.