The unofficial NDTV news summarizer
This repo seeks to scrape the latest news from the NDTV website (ndtv.com/latest) and provide summaries for the readers of the latest headlines in those areas. This repo covers:
- You will need Python and pip installed to install the required libraries
- You will also need to register an OpenAI account and obtain an API key. If you don't have one, find how to here
- Download the repo
- Navigate into the main folder and run:
pip install -r requirements.txt
There are two ways to run the code:
python main.py
- Go to the src folder and run the following commands one after another:
- Run the news extraction script using the following code
python "ndtv_class.py" ndtv_content = ndtv_test.run_extraction() hl, summ, art, urls = ndtv_content
- Summarize each article and all the articles by running the following code:
python summarizer.py
- Create the newspaper by running:
python create_newspaper.py"
This should display a webpage that shows the following:
- A bulleted summary of all articles
- Summary of each article with the corresponding headline and url
This repo has no affiliation whatsoever with NDTV. It is not officially sanctioned, nor is there any collaboration / partnership whatsoever. This is only a personal project