Coder Social home page Coder Social logo

nyt-api's Introduction

warning

super QAD nyt-api fetcher, used during sprint with the query: "global warming" OR "climate change"

example

to see sample result of the /authors endpoint, go to:

http://medialab.github.io/nyt-api/public/sample.html

it works because i just copied and pasted my local rendered html (and the /css and /js are relatives in the same /public folder)

to do

  • put all the special cases from bam.utils.js in config.js
  • automatic time-interval splitting (not only month by month)
  • allow multiple queries

install

npm install

run

cp config.default.js config.js (and update)

mongod

npm start

use

got to:

  • http://localhost:3000/all to display all articles json
  • http://localhost:3000/write to write db to a local .csv file
  • http://localhost:3000/launch to start fetching articles (warning!)
  • http://localhost:3000/authors to display list of authors (see sample above)

fetch will be done by month between the years defined in config.js

License

Based on the node-express-mongoose boilerplate

License is MIT

nyt-api's People

Contributors

pierrejdlf avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

imclab

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.