This is a Flask-based web application that scrapes the latest headlines from various news media websites. Users can select a media source, and the application will fetch and display the headline from the selected website.
- Scrape headlines from popular news websites:
- Kompas
- Tribun
- Detik
- CNN Indonesia
- Tempo
- Display the active media name, URL, and the scraped headline.
- Simple and user-friendly interface.
- Backend: Flask (Python)
- Frontend: HTML, CSS (with inline styles)
- Web Scraping: BeautifulSoup (Python)
- HTTP Requests: Requests (Python)
pip install flask requests beautifulsoup4
Run the Flask application:
python app.py