Giter Site home page Giter Site logo

newsscraper's Introduction

Newsscraper App

What

Newsscraper is a news site indexing application. It provides an REST-like API for third parties to use.

Why

Newsscraper was built as part of a test assignment.

How to build and run

Developed and tested under Window 10 with Visual Studio Community 2017 v15.7.3. Environment prerequisites:

  • Install PostgreSQL 9.6. Specify postgres for password.
  • Install IIS 7.5

Directions for running

  • Open newsscraper.sln, set newsscraper as a startup project.
  • Issue the following command in Package Manager prompt to create the database: Update-Database If all is well (postgres is up and running, password is correct), the database will get created and deployed.
  • Next, run the newsscraper project. It will crawl and index tengrinews.kz website.
  • To have a look at the API, run newsscraper.Web project

A note on API

/api/posts?from=d1&to=d2 displays articles that were published between d1 and d2. 'YYYY-MM-DD' date format is expected.

/api/search?text=foo displays hits for foo in indexed content

/api/topten returns 10 most frequently occuring lexemes in indexed documents

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.