Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Savvy Blog Setup Guide

Built with React and Django, this app uses APScheduler and BeautifulSoup4 to schedule web scraping from blog sites like LiveScience. It then curates blogs based on user-selected topics to deliver a seamless, personalized reading experience.

Ethical and Sustainable Web Scraping

The web scraping process incorporates throttling to ensure ethical data extraction. Throttling minimizes the load on target websites, preventing performance issues and reducing the risk of being blocked.

Table of Contents

- Prerequisites.
- Installation.
- Environment Setup.
- Frontend Setup.
- Running the Application. 
- License. 

Prerequisites

Before you begin, ensure you have the following installed:

Installation

Clone the repository and set up your virtual environment:

  1. Clone the repository:
git clone https://github.com/Koech01/savvy-blog.git
python3 -m venv savvy-blog/
cd savvy-blog
  1. Install dependencies:
source bin/activate
pip install -r requirements.txt

Environment Setup.

Configure the environment:

  1. Create an .env file:
touch .env 
  1. Generate a Django secret key:
python -c 'from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())'
  1. Open the .env file and add the following lines, with your newly generated secret key for SECRET_KEY. Make sure to keep DEBUG=True for local development:
SECRET_KEY=your_generated_secret_key_here
DEBUG=True

Frontend Setup.

  1. Set up the frontend by navigating to the frontend directory and installing dependencies:
cd frontend
npm install
npm run build
cd ..

Running the Application.

  1. Start the Django development server:
python manage.py runserver 

You can now access the application at http://127.0.0.1:8000/.

License.

This project is licensed under the MIT License.

About

Built with React and Django, the web app uses APScheduler and BeautifulSoup4 to automate web scraping from sources like LiveScience. It curates blog posts based on user-selected topics, delivering relevant content in a personalized, user-centric design for a seamless reading experience.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages