google-news-sitemap
Version:
Google XML News Sitemap plugin
34 lines (27 loc) • 1.21 kB
Markdown
# Google News Sitemap Generator For NodeJS


```js
const GoogleNewsSitemap = require('google-news-sitemap');
const builder = new GoogleNewsSitemap();
builder.add({
location: "http://example.com/article1",
title: "item 1",
publication_date: "May 24, 2012",
publication_language: "en",
publication_name: "Dimas Lanjaka",
});
builder.add({
location: "http://example.com/article2",
title: "item 2",
publication_language: "en",
publication_date: "May 25, 2012",
publication_name: "Dimas Lanjaka",
});
console.log(builder.toString());
```
[VIEW FULL EXAMPLE](https://github.com/dimaslanjaka/google-news-sitemap/blob/master/tests/index.js)

Google News related questions? Find answers in the [Google News Help Forum](http://www.google.com/support/forum/p/news?hl=en)
## Site using this package
[www.webmanajemen.com](https://www.webmanajemen.com/sitemap-google-news.xml)