getquizlet

2.0.1 • Public • Published

Get Quizlet

Build Status

Grab a quiz from quizlet in plain text format.

Install

npm install --save get-quizlet
 
# OR install it globally for cli use 
 
npm install -g get-quizlet

Use

let quiz = require('./get-quizlet')
 
let quizURL = 'https://quizlet.com/26463057/c-1st-test-flash-cards'
 
quiz.getQuiz(quizURL).then(quiz.parseQuiz)

or if you installed it globally, the cli command will fetch it and write it out to the current directory.

getquizlet https://quizlet.com/26463057/c-1st-test-flash-cards

API

quiz.getQuiz(quizletURL)

Fetches a quizlet.

This is just a helper for the cli, you can fetch the quiz however you want.

quiz.parseQuiz(quizletHtml)

Parse a HTML page from quizlet into an quiz object.

The quiz object will have the following properties:

  • title - The title of the quiz as a string
  • questions - an array of the questions as strings
  • answers - an array of the answers as strings

quiz.writeFile([siteurl], parsedPageObj)

Writes a quizlet to the to a file in the current working directory.

This is another helper for the cli.

Bugs

Please report any bugs to: https://github.com/makenova/get-quizlet/issues

License

Licensed under the MIT License: https://opensource.org/licenses/MIT

Readme

Keywords

Package Sidebar

Install

npm i getquizlet

Weekly Downloads

4

Version

2.0.1

License

MIT

Last publish

Collaborators

  • makenova