implement what this video says https://www.youtube.com/watch?v=BVizDqOfins
A simple script that uses the requests
and newspaper3k
libraries to scrape the top headline from Google News and extract the text and summary of the article. The article text and summary are then saved to article.txt
and summary.txt
respectively.
- Python 3
- requests
- newspaper3k
- json
- API key from NewsAPI
- Clone the repository
pip install -r requirements.txt
- Put NewsAPI api key in main.py file.
- Run the script using
python main.py
This project is licensed under the MIT License, which means you can use, modify, and distribute the code as long as you give credit to the original author. See the LICENSE file for more details.
Open a PR or an Issue for contribution.
- implement whatever is left in the video:
- Use pyttsx3 or any other text to speech service to make the audio.
- Use newspaper3k module's newspaper.keywords to get the keywords of the article and find a relevant video to use.
Thanks to 1. ChatGPT for helping me generate this README.
2. CodeWithLewis for giving this idea