A modern, futuristic weather data scraper and visualization application built with Flask, BeautifulSoup, and modern frontend technologies.
- Location Search: Enter any city, state, or village name to get detailed weather information
- Comprehensive Weather Data: Current conditions, forecasts, air quality, pollen counts, and more
- Futuristic UI: Beautiful, responsive dashboard with animated elements and intuitive visualization
- No API Keys Required: Data is scraped directly from weather.com
- Responsive Design: Works o 8224 n desktop and mobile devices
- Geolocation Support: Option to use your current location for weather data
- Multiple Location Methods: Search by city name, coordinates, or use browser geolocation
- Python 3.6+
- Flask
- BeautifulSoup4
- Requests
- Clone this repository or download the files
- Install the required dependencies:
pip install -r requirements.txt
- Run the application:
python app.py
- Open your browser and navigate to
http://127.0.0.1:5000/
- Enter a location in the search bar (city name, state, village, etc.)
- For better results, include the country name (e.g., "Paris, France")
- You can also enter coordinates directly (e.g., "40.7,-74.0")
- Or click the location icon to use your current location
- Click the search button or press Enter
- View the comprehensive weather data in the dashboard
- For issues finding a location, try:
- Using a more specific location name
- Adding the country name
- Using a larger nearby city
- Using coordinates if you know them
Weather Data Scraper/
├── app.py # Main Flask application
├── requirements.txt # Python dependencies
├── templates/ # HTML templates
│ └── index.html # Main dashboard template
├── static/ # Static assets
│ ├── css/
│ │ └── style.css # Styles for the application
│ └── js/
│ └── app.js # Frontend JavaScript functionality
└── .gitignore # Git ignore file
- Backend: Flask web framework handles routing and responses
- Web Scraping: BeautifulSoup4 extracts weather data from weather.com
- Location Search: Multiple geocoding methods for better location accuracy
- Frontend: Modern HTML5, CSS3, and vanilla JavaScript
- Visualization: Custom-built gauge for air quality index and interactive charts
- Error Handling: Comprehensive error handling with user-friendly suggestions
This application is for educational purposes only. The data is scraped from weather.com and should not be used for critical decision-making. Please respect the terms of service of any website you scrape data from.
This project is open-source and available for personal and educational use.