TrendBlender is a Python script that tracks real-time GBP/USD currency pair prices, stores the data in an Oracle database, and visualizes historical price trends using Matplotlib.
- Web Scraping: Fetches current GBP/USD price data from Investing.com using
requests
andBeautifulSoup
. - Database Interaction: Stores fetched data in an Oracle database (
price_tracker
) with columns for timestamp, currency pair, and price. - Data Visualization: Plots historical GBP/USD prices over time using Matplotlib, with markers, labels, and formatted timestamps.
- Periodic Updates: Automates data fetching and visualization at regular intervals using
schedule
.
git clone https://github.com/your-username/trendblender.py.git
cd trendblender.py
pip install -r requirements.txt
Edit the user
, pw
, and cs
variables in the script with your Oracle database credentials.
To start tracking and visualizing GBP/USD prices, run the script:
python trendblender.py
The script fetches real-time data every minute, stores it in the database, and updates the visualization accordingly.
- Python 3.x
- Python packages:
requests
,beautifulsoup4
,matplotlib
,schedule
,oracledb
We welcome contributions! Fork the repository and submit pull requests to contribute to TrendBlender.
This project is licensed under the MIT License. See the LICENSE file for details.