Skip to content

Latest commit

 

History

History
38 lines (19 loc) · 1.72 KB

README.md

File metadata and controls

38 lines (19 loc) · 1.72 KB

Fake News (The Onion) Scraper

This application uses Cheerio to scrape the articles from The Onion. It allows users to save articles to a MongoDB and allows comments to be attached to the saved articles.

Main Screenshot

Instructions

  1. The application is located as follows:

New Articles

New Articles Screenshot

  1. Clicking the New Articles button will scrape the articles off The Onion website and display the headlines linked to the full story on The Onion website. A picture (if available) and summary (if available) of the article are also displayed.

  2. Clicking the Save Article button next to the article headline will save the article's information into a Mongo Database.

Saved Articles

Saved Articles Screenshot

  1. Clicking the Saved Articles button will pull the saved information from the Mongo Database and display the articles as before except with two buttons Delete Article and Comments.

  2. Clicking the Delete Article button will remove the article and all associated comments from the database.

Comments

Comments Screenshot

  1. Clicking the Comments button will open a modal that will allow the user to add a comment to the article. Multiple comments can be associated with the same article and will display in a list just above the new comment text box.

  2. Clicking the x next to the comment will remove just that comment from the database.