google-news-decoder
Version:
Decode Google News article URLs
34 lines (24 loc) • 698 B
Markdown
A Node.js module to decode Google News article URLs.
```sh
npm install google-news-decoder
```
```
const GoogleNewsDecoder = require("google-news-decoder");
(async () => {
const decoder = new GoogleNewsDecoder();
const sourceUrl = "https://news.google.com/rss/articles/CBMi0wFBVV...";
const decoded = await decoder.decodeGoogleNewsUrl(sourceUrl);
console.log(decoded);
})();
```
- Extracts and decodes article links from Google News
- Works with RSS and standard Google News URLs
- Supports proxy configuration
[](https://github.com/abhir9)
MIT