This is a Python project that scrapes headlines from a news website (e.g., BBC News) and displays them in a simple local web interface using Gradio. You can also refresh the news headlines by clicking a button.
- ๐ Scrapes headlines from a news website.
- ๐๏ธโฐ Saves the headlines to a text file named with the current date and time.
- ๐ป๐ Displays the headlines on a local webpage.
- ๐ Provides a button to refresh the headlines.
- ๐ Python 3.6 or higher
- ๐
requestslibrary - ๐งโ๐ป
beautifulsoup4library - ๐ฅ๏ธ
gradiolibrary
- Open CMD ๐ฅ๏ธ
| Operating System | Steps |
|---|---|
| Windows ๐ป | 1. Press Windows + R to open the "Run" dialog box. 2. Type cmd and hit Enter. 3. The Command Prompt (CMD) will open. Alternatively, you can search for "Command Prompt" in the Start menu and click to open it. ๐ 4. To navigate to the Desktop, type cd %USERPROFILE%\Desktop and hit Enter. ๐ |
| Linux ๐ง | 1. Press Ctrl + Alt + T to open the terminal. 2. Alternatively, search for "Terminal" in your applications menu. ๐จ 3. To navigate to the Desktop, type cd ~/Desktop and hit Enter. ๐ |
- Clone this repository :
git clone https://github.com/LaithALhaware/Web-Scraper-for-News-Websites.git
cd 'Web-Scraper-for-News-Websites'- Install the required dependencies :
pip install -r requirements.txt- Run the application :
python app.py- Open the local Gradio interface in your browser to view and refresh the news. ๐๐
This project is licensed under the License. See the LICENSE.txt โ๏ธ file for details.
If you find this project useful, consider supporting its development:
๐ฐ Via PayPal: [PayPal Link]
Your support helps keep this project alive! ๐๐ฅ
