Skip to content
A modern and simple to use object orientated moodle scraper
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
__tests__
docs
src
.gitignore
.npmignore
.travis.yml
README.md
jsdoc.json
package-lock.json
package.json

README.md

Elite Moodle Scraper

A modern and simple to use object orientated moodle scraper

Features

  • Easily scrape data from multiple moodle accounts.

    • Fetch user info
    • Fetch modules
    • Fetch grades
    • Fetch upcoming calender
    • Fetch blog posts
    • Fetch previous sessions
  • Stores data in object cache.

  • After logging in, the login token is stored for future requests.

  • A fake user agent is used in order to help stay undetected.

  • Works with user accounts on different moodle websites at the same time!


Installation

npm install --save elite-moodle-scraper

Example

const MoodleUser = require('elite-moodle-scraper').MoodleUser;

const user = new MoodleUser('USERNAME', 'SUPER_SECRET_PASSWORD', 'BASE_MOODLE_URL');
user.login(async loggedIn => {
    await user.fetchUserInfo();
});

Contributing

Before creating an issue, please ensure that the problem hasn't already been reported/suggested, and double-check the documentation to make sure it is actually an issue! If you wish to contribute to the codebase or docs, feel free to fork the repository, make what ever changes you want and then submit a pull request. Make sure to include a description of whatever you change!

You can’t perform that action at this time.