This is a simple Python web scraper that fetches data about the top 10 tokens from CoinMarketCap. The script utilizes the beautifulsoup4
library for parsing the HTML content of the website and extracting the relevant information.
- Python 3.8 or higher installed on your system.
- Install the
beautifulsoup4
library using pip:
pip install beautifulsoup4
- Clone this repository:
git clone https://github.com/allyn8444/token-scraper.git
- Navigate to the project directory:
cd token-scraper
- Run the Python script:
python scraper.py
The script will fetch the current values of the top 10 tokens and display the output in the terminal.
You can find the official documentation for beautifulsoup4
library here. It provides comprehensive details on how to use the library for parsing HTML and XML documents.
This project is intended for educational and informational purposes only. Please be aware that scraping websites without permission may violate their terms of service. Additionally, this script relies on the current structure of the CoinMarketCap website. If the website's source structure changes, the scraper may no longer function correctly. Use the scraper responsibly and in accordance with the website's guidelines.
Note: The data fetched by this scraper may not be real-time and is subject to change based on the website's data updates.
Feel free to use, modify, and distribute this code as per your requirements. Happy scraping! 🚀