Giter Club home page Giter Club logo

newsarticles's Introduction

newsarticles

A repository for a demo which will serve news articles Problem Statement: Create a REST service which answers following queries from scrap data: a. Search available authors b. Search articles based on input author name c. Search articles based on input article title and description d. Search articles based on date e. Search author name based on date f. Search articles based on tags associated with articles g. Search articles based on city name h. Search articles based on news categories

Postman collection URl for the implemented APIs: https://www.getpostman.com/collections/b7e648077f5f52b28b0f

Approach:

  1. Refer DBDesign.png to get a clear idea of how we can do the DB design for the above problem statement(minimalistic one).
  2. To create the DB Run DBScript.sql.
  3. To run the project run node ./bin/www will start the API server.
  4. To check the APIs use postman collection shared.
  5. In the API Articles by date(http://localhost:3003/articles/2019-03-02) I have done a http call to hindu site to get the data(not in desired format it directly gives the HTML of that page).
  6. If we need data as json or some format that an API should return we need to parse the HTML(web crawling can be used) that we are getting from the Hindu site.
  7. Using web-scrapping implemented for 2 APIs to get the titles properly a. Implemented for http://localhost:3003/categories/national/articles/all b. Implemented for http://localhost:3003/articles/by_city/hyderabad

newsarticles's People

Contributors

manasmishra avatar

Watchers

James Cloos 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.