Giter Site home page Giter Site logo

codecodecodesde / news-manager Goto Github PK

View Code? Open in Web Editor NEW
14.0 3.0 6.0 11.14 MB

🗞news scraping and recommendation system

HTML 2.41% CSS 1.84% JavaScript 46.81% Python 47.83% Shell 1.10%
react nodejs express recommendation-system tensorflow mongodb redis webscraper materialize-css rpc-api

news-manager's Introduction

News Manager

Introduction

News Manager is a real time news scraping and recommendation system. This system uses a news pipeline to scrape latest news from various of resources such CNN, BBC and Bloomberg etc. To render the news, this system integrates with a single-page web application built by React. In addition, it generates a customized news list for each user based on news topics. To achieve this function, a click log processor collects users’ click logs to update a news preference model for each user, and an offline training pipeline models news topics.

demo

Architecture

architecture

SOA

  • Client: a single-page web application built by React.
  • Web Server: handles the sign-up and login functions with node.js and Express.
  • Backend Server: requests news from database, labels specific news with "recommend" tag based on the response of news recommendation service and sends user's click events to click log processor
  • News Recommendation Service: responses a list of prefered news topics for the current user.
  • Click Log Processor: updates a user's preference model using a time decay method.
  • News Topic Modeling Service: predicts news topics using a CNN model generated by an offline training pipeline.
  • News Monitor: with the help of News API, finds the latest news from 20+ resource websites. It integrates with Redis to filter news with the same titles.
  • News Fetcher: obtains a scraping task from the task queue and scrapes news using Newspaper3K library.
  • News Deduper: utilizes NLP techniques to compare the content of the scraped news and existing news in mongoDB, calls the news topic modeling service and then stores the unique news into database.

How to run it

To set up this system

./launcher.sh

To scrape more news

cd news_pipeline
./news_pipeline_launcher.sh

To update user'preference model

cd news_recommendation_service
python3 click_log_processor.py

news-manager's People

Contributors

codecodecodesde avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.