Skip to content

A full-stack application that scrapes Korean Drama news from the web!

Notifications You must be signed in to change notification settings

joverlee521/K-Scraping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

k-Scraping

k-Scraping is a full-stack application that scrapes Korean Drama news from the web!

About

The purpose of this project is to learn the process of web scraping and the storage of data utilizing MongoDB and Mongoose. The incorporation of Mongoose allows the establishment of associations between documents of different models, such that articles are easily displayed with their associated comments. Passport.js is included to add Google OAuth 2.0 to differentiate between individual users, supporting personalized bookmarks and comments.

Deployment

The application is deployed to Heroku: http://jl-kscraping.herokuapp.com

  • There may be a small delay when you first try to access the application due to the web dyno going to sleep if it receives no traffic for 30 minutes

How To

Main Page

  • The landing page displays the five latest articles in the database.

    Main Page

  • Clicking on "Get Latest k-Scraps" will scrape the articles seen at Dramabeans News

  • If the scrape was successful, the new articles will replace the current articles on the page.

    Latest Articles

  • Articles cannot be repeated in the database, so if the database already contains all of the scraped articles, then a modal will pop up to alert users that the latest articles are already displayed

    No New Articles Modal

  • Clicking on "Load More k-Scraps" will display five older articles on the page.

  • If all articles in the database has been displayed, clicking "Load More k-Scraps" will pop up a modal to inform users that there are no more articles.

    No More Articles Modal

Articles

  • Each article includes the headline, a small preview of the full article, a "Read Article" button and a "Comments" button.

    Article

  • Clicking on the "Read Article" button will direct the user to the external webpage of the article

  • Clicking on the "Comments" button will reveal the comments section of the article.

    Signed Out Comments

  • All users can read the existing comments of an article, but only signed-in users can write and post a new comment.

    Signed In Comments

  • Users can only delete their own comments.

    Delete Comment

Bookmarks

  • When a user is signed in, they can see a bookmark button on each article.

    Bookmark Button

  • Clicking on the bookmark button will add the articles to the user's bookmarks.

  • Clicking on "Bookmarks" in the nav-bar will direct users to their bookmarks page.

  • On the bookmarks page, a user can click on the trash can button to delete a bookmarked article.

    Bookmarks Page

Technologies Used

About

A full-stack application that scrapes Korean Drama news from the web!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published