Skip to content

pong1013/dynamic-news-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

Live Page

A Django-based web application to automatically scrape focal news from the UDN NBA website using Scrapy, store the data in a database with appropriate Django models, and display the news dynamically using Django REST Framework and AJAX. The application includes celery scheduled scraping and is deployed to a server on GCP for live operation.

Start server

Run git project or docker image:

Clone this project

git clone https://github.com/pong1013/dynamic-news-scraper.git

Run start.sh

cd udn_nba
./start.sh

Pull Image

docker pull pong1013/nba-spider:latest
docker run -p 8000:8000 -p 6379:6379 pong1013/nba-spider:latest

Deploy on GCP

Go to cloud shell.

  1. Pull Image
    sudo docker pull pong1013/nba-spider:latest
    sudo docker run -d --platform linux/arm64 -p 8000:8000 -p 6379:6379 pong1013/nba-spider:latest
  2. List running container and check logs
    sudo docker ps
    sudo docker logs <container_id>
  3. Access web
    http://[EXTERNAL_IP]:8000

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published