web scraping
June 1, 2025 Demo# Currency & Gold Prices Scraper
A lightweight Laravel-based web scraping application that collects and displays live currency exchange rates and gold prices from a public data source.
## Overview
This project demonstrates the implementation of a web scraping solution using Laravel, Guzzle HTTP Client, and Symfony DomCrawler.
The application fetches currency and gold pricing data, processes the extracted HTML content, and presents it through a simple and user-friendly interface.
## Features
- Scrape live currency exchange rates.
- Scrape gold prices.
- Parse and extract structured data from HTML pages.
- Display data in a clean and responsive interface.
- Arabic date and time formatting (Cairo timezone).
- Toggle between Currency Prices and Gold Prices views.
## Technical Implementation
### Backend
- Laravel
- Guzzle HTTP Client
- Symfony DomCrawler
### Scraping Workflow
1. Send HTTP requests to the target website.
2. Retrieve the HTML response.
3. Parse HTML content using CSS selectors.
4. Extract the required currency and gold pricing data.
5. Render the processed data in Blade views.
## Project Structure
```text
app/
└── Http/
└── Controllers/
└── ScrapingController.php
resources/
└── views/
└── index.blade.php
```
## Purpose
This project was developed as a practical example of building a web scraping solution with Laravel, focusing on data extraction, parsing, and presentation of financial information in real time.