Skip to content

VaishnaviSingh1/New-Aggregator-Using-Django

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

New Aggregator Using Django

This project is a news aggregator developed using Django, which scrapes news headlines from a specified source and displays them on a web page.

Home Page

newAggregator1

News

NewAggregatorjpeg

Installation

  1. Clone the repository and navigate into the project directory:

git clone https://github.com/VaishnaviSingh1/New-Aggregator-Using-Django.git
cd New-Aggregator-Using-Django
  1. Create a virtual environment and activate it:

python -m venv env
source env/bin/activate  # On Windows use `env\Scripts\activate`
  1. Install dependencies using pip:

pip install -r requirements.txt

Running the Application

  1. Make migrations and migrate to set up the database:
python manage.py makemigrations
python manage.py migrate
  1. Start the development server:
python manage.py runserver
Visit http://localhost:8000/ in your web browser to view the application.

Usage

  1. Scraping News

To scrape news headlines, use the /scrape/ endpoint, where is the name of the source to scrape from.

  1. Viewing News

Navigate to /news/ to view the scraped news headlines.

Technologies Used

  1. Python

  2. Django

  3. BeautifulSoup (for web scraping)

  4. Requests (for making HTTP requests)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published