google-news
JavaScript API for querying Google News
Last updated 7 years ago by pmoelgaard .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install google-news 
SYNC missed versions from official npm registry.

Google News API

JavaScript API for querying Google News, written in CoffeeScript.  

NPM Travis

 


Documentation

Usage (CoffeeScript)

GoogleNews = require('google-news')
googleNews = new GoogleNews()

track = 'Volvo'

googleNews.stream track, (stream) ->

	stream.on GoogleNews.DATA, (data) ->
  		console.log 'Data Event received... '+ data.title

	stream.on GoogleNews.ERROR, (error) ->
  		console.log 'Error Event received... '+ error

Usage (JavaScript)

var GoogleNews, googleNews, track;
  
GoogleNews = require('google-news');
googleNews = new GoogleNews();

track = 'Volvo';

googleNews.stream(track, function(stream) {
  
  stream.on(GoogleNews.DATA, function(data) {
    return console.log('Data Event received... ' + data.title);
  });
  
  stream.on(GoogleNews.ERROR, function(error) {
    return console.log('Error Event received... ' + error);
  });
});

Author

Peter Andreas Moelgaard (GitHub, Twitter)

License

Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0

Current Tags

  • 1.4.6                                ...           latest (7 years ago)

28 Versions

  • 1.4.6                                ...           7 years ago
  • 1.4.5                                ...           7 years ago
  • 1.4.4                                ...           7 years ago
  • 1.4.3                                ...           7 years ago
  • 1.4.2                                ...           7 years ago
  • 1.4.1                                ...           7 years ago
  • 1.4.0                                ...           7 years ago
  • 1.3.8                                ...           7 years ago
  • 1.3.7                                ...           7 years ago
  • 1.3.6                                ...           7 years ago
  • 1.3.5                                ...           7 years ago
  • 1.3.4                                ...           7 years ago
  • 1.3.3                                ...           7 years ago
  • 1.3.2                                ...           7 years ago
  • 1.3.1                                ...           7 years ago
  • 1.3.0                                ...           7 years ago
  • 1.2.4                                ...           7 years ago
  • 1.2.3                                ...           7 years ago
  • 1.2.2                                ...           7 years ago
  • 1.2.1                                ...           7 years ago
  • 1.2.0                                ...           7 years ago
  • 1.1.0                                ...           7 years ago
  • 1.0.5                                ...           7 years ago
  • 1.0.4                                ...           7 years ago
  • 1.0.3                                ...           7 years ago
  • 1.0.2                                ...           7 years ago
  • 1.0.1                                ...           7 years ago
  • 1.0.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2021 © npmmirror.com |