2.2.0 • Published 2 years ago

@cstleagueorg/cs2-blog-scraper v2.2.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

CS Blog and Updates Scraper

Get Blog and Update posts from CS2

Usage:

import { getBlogPosts, getUpdatePosts } from "@cstleagueorg/cs2-blog-scraper";

const blogPosts = await getBlogPosts();
const updatePosts = await getUpdatePosts();

OR

import getPosts from "@cstleagueorg/cs2-blog-scraper";

const posts = await getPosts();

OR

import { UpdatesListener, Post } from "@cstleagueorg/cs2-blog-scraper";
function receiveUpdate(post: Post) {
  console.log(post)
}
const listener = new UpdatesListener(receiveUpdate); // check updates every 10 minutes
...
listener.stopListening();

Output:

interface Post {
  title: string;
  url: string;
  date: Date;
  image?: string;
  content: string;
}
2.2.0

2 years ago

2.1.2

2 years ago

2.1.1

2 years ago

2.1.0

2 years ago

2.0.4

2 years ago

2.0.3-r2

2 years ago

2.0.3-r

2 years ago

2.0.3-readme

2 years ago

2.0.3

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago