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')