2.0.1 • Published 7 years ago

getquizlet v2.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

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

2.0.1

7 years ago

2.0.0

7 years ago

1.0.0

9 years ago