1.0.2 • Published 8 years ago

@rammbulanz/golem v1.0.2

Weekly downloads
1
License
ISC
Repository
-
Last release
8 years ago

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[]
}