Skip to content

LaithALhaware/Web-Scraper-for-News-Websites

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

28 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“ฐ๐ŸŒ News Scraper with Web Interface

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.

โœจ Features

  • ๐ŸŒ 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.

๐Ÿ“‹ Requirements

  • ๐Ÿ Python 3.6 or higher
  • ๐ŸŒ requests library
  • ๐Ÿง‘โ€๐Ÿ’ป beautifulsoup4 library
  • ๐Ÿ–ฅ๏ธ gradio library

๐Ÿ›  Installation

  1. 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. ๐Ÿ“‚
  1. Clone this repository :
git clone https://github.com/LaithALhaware/Web-Scraper-for-News-Websites.git
cd 'Web-Scraper-for-News-Websites'
  1. Install the required dependencies :
pip install -r requirements.txt
  1. Run the application :
python app.py
  1. Open the local Gradio interface in your browser to view and refresh the news. ๐ŸŒ๐Ÿ”„

๐Ÿ‘ Example output from the code goes here

Alt Text

๐Ÿ“ License

This project is licensed under the License. See the LICENSE.txt โš–๏ธ file for details.


โค๏ธ Support This Project

If you find this project useful, consider supporting its development:

๐Ÿ’ฐ Via PayPal: [PayPal Link]

Your support helps keep this project alive! ๐Ÿš€๐Ÿ”ฅ

About

This Python project scrapes news headlines ๐Ÿ“ฐ from a website (e.g., BBC News) ๐ŸŒ and displays them on a local web interface using Gradio ๐Ÿ’ป. Users can refresh ๐Ÿ”„ the headlines and view them in real-time โฑ๏ธ. The headlines are also saved to a text file ๐Ÿ“„ with the current date and time ๐Ÿ—“๏ธ

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages