golem
Fetch golem.de/ticker articles
Note: It fetches the golem articles from plain html. If golem.de will change an important node, this module can be broken. Use github issue tracker to report it if it happens.
Install
npm install @rammbulanz/golem
Use
Include in javascript
var Golem = require("@rammbulanz/golem")
Include in typescript
import * as Golem from '@rammbulanz/golem'
Fetch articles
var articles = await Golem.getArticles();
Fetch artikle
var article = await Golem.getArticle("${ARTICLE_URL}");
// Article will be an object like
{
meta: {
url: string,
date: Date,
author: string,
keywords: string[]
},
title: string,
content: string,
plainHtml: string,
// Array of URLs
pictures: string[],
// Array of URLs
videos: string[]
}