vex-qna-archiver
TypeScript icon, indicating that this package has built-in type declarations

8.1.3 • Public • Published

vex-qna-archiver

A set of utilities focused on scraping the VEX Robotics Q&A.

Usage

Retreiving All Questions

import { getAllQuestions } from "vex-qna-archiver";

(async () => {
    const questions = await getAllQuestions();
})();

Retreiving and Filtering Questions

import { getQuestions } from "vex-qna-archiver";

(async () => {
    // gets all questions from the current season
    const currentSeasonQuestions = await getQuestions();

    // get all questions from a particular season
    const specificSeasonQuestions = await getQuestions(["2020-2021"]);

    // get all VEXU questions from the 2020-2021 season
    const filteredQuestions = await getQuestions({
        VEXU: ["2020-2021"]
    });
})();

Retrieving Unanswered Questions

import { getUnansweredQuestions } from "vex-qna-archiver";

(async () => {
    const questions = await getUnansweredQuestions();
})();

Package Sidebar

Install

npm i vex-qna-archiver

Weekly Downloads

2

Version

8.1.3

License

GPL-3.0

Unpacked Size

77.1 kB

Total Files

28

Last publish

Collaborators

  • battlesqui_d