Giter VIP home page Giter VIP logo

spiders's Introduction

News Spiders

A collection of crawlers for news web sites. API is used to grab links of the latest stories and provide them in a clean json format to be rendered however you need. Most news orgs do not provide an api to get their latest stories, so I have created my own. Included is a simple index file for viewing the current api.

Local installation

preview of index viewer

This api relies on node.js so make sure you have a revent version installed.

  1. git clone https://github.com/OpenNewsLabs/spiders.git
  2. cd spiders && npm install
  3. node app.js
  4. open up the index viewer of all the latest news at the local uri http://localhost/cnn

Current API

After local installation is running all apis below can be viewed by appending to base path. example: "http://localhost:3000/cnn"

  • GET /cnn
  • GET /fox
  • GET /bbc
  • GET /nyt

Testing

API tests are run using mocha. Before you run mocha you must have the API running ( step three under local installation )

spiders's People

Contributors

shuhblam 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.