GithubHelp home page GithubHelp logo

dylantrimble / mongoose-news-scraper Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2.31 MB

Web app that lets users view and leave comments on the latest news, scraped fresh daily.

JavaScript 90.76% HTML 8.34% CSS 0.90%

mongoose-news-scraper's Introduction

MongoDB-News-Scraper

An NPR news website scraper utilizing MongoDB, Mongoose, and Cheerio.


app-home-screen

Functionality

Upon visiting the website, the user sees a navbar links to the two pages within the website ('Home' and 'Saved Articles), as well as two buttons. The 'Scrape New Articles' scrapes the articles from NPR's website's main page; the 'Clear Scraped Articles' removes all of the scraped articles.

When no scraped articles are present, a notice appears on the page.

Clicking on an article generates a drop down with a summary and a 'Save Article' button. Clicking on the summary will open the appropriate NPR webpage. Clicking the 'Save Article' button appropriately saves the article and removes it from the scraped articles.

Selecting the 'Saved Articles' link in the navbar brings you to a page showing all of the saved articles. Clicking on a given article generates a drop down with the summary and two buttons - 'Add Note' and 'Delete From Saved.'

'Delete From Saved' deletes the article from the saved database. Clicking 'Add Note' generates a modal where you can see any notes that have been added previously, delete old notes (by clicking on the red 'x' button, if present), or add a new note.

To add a note, simply type the note where prompted and click 'SAVE NOTE' within the modal.

The user can also clear all saved notes by clicking on the 'CLEAR SAVED NOTES' button at the top right of the page. Similar to the home page, when no saved articles are present a message appears on the page.

Built With

mongoose-news-scraper's People

Contributors

dylantrimble avatar dependabot[bot] avatar

Watchers

 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.