Skip to content

Latest commit

 

History

History
39 lines (36 loc) · 1.08 KB

README.md

File metadata and controls

39 lines (36 loc) · 1.08 KB

CoinMarketCap Scraper With MongoDB

A simple scraper for exchanges' information on CoinMarketCap.com. All data can be saved into a remote MongoDB. For example,

cmc-exchanges-mongodb

Set Up MongoDB Over DigitalOcean Droplet

The installation shell script can be found in this repo.

How-to

  • Clone this repo
git clone https://github.com/0xboz/coinmarketcap_scraper.git
cd coinmarketcap_scraper
  • Create virtual environment (optional but recommended)
python3 -m venv venv
  • Activate virtual environment (optional but recommended)
source venv/source/activate
  • Install required packages
pip install -r requirements.txt
  • Create a config.ini in the root directory

username = USERNAME
password = PASSWORD
ip = SERVER_IP
database_name = crypto
collection_name = exchanges

  • Run
python exchanges.py

terminal-resp

  • Update the database
    Re-run the program whenever you would like to update the database.