Skip to content

Battlesquid/vex-qna-archiver

Repository files navigation

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 VURC questions from the 2020-2021 season
    const filteredQuestions = await getQuestions({
        VURC: ["2020-2021"]
    });
})();

Retrieving Unanswered Questions

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

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