Live Crypto Price Web Scraper

Automated Bitcoin Price Tracker with Timestamp Logging

πŸ“Œ Project Overview

This project is a live automated web scraper built in Python that continuously tracks the price of Bitcoin from CoinMarketCap and logs the data into a CSV file every 5 seconds.

It:

Scrapes live Bitcoin price data Cleans and formats the extracted value Attaches a real-time timestamp Appends data continuously to a CSV file Runs automatically in an infinite loop This project demonstrates how to build a mini real-time data pipeline using Python.

https://drive.google.com/file/d/1juOobtPx2C9P2j8fmWxE5hfwAVWr8jx3/view?usp=sharing

πŸ›  Technologies Used

Python requests – HTTP requests BeautifulSoup (bs4) – HTML parsing pandas – Data structuring datetime – Timestamp generation os – File existence handling time – Scheduled execution

🌐 Data Source

Bitcoin live price page:

πŸ”—Β https://coinmarketcap.com/currencies/bitcoin/

The scraper extracts:

Crypto Name Live Price Timestamp of extraction

πŸ”Ž How It Works

1️⃣ Send Request to WebsiteΒ page = requests.get(url)

Fetches the live HTML content from CoinMarketCap.

2️⃣ Parse HTML

soup = BeautifulSoup(page.text, 'html')