1.1.0 • Published 6 years ago

elite-moodle-scraper v1.1.0

Weekly downloads
1
License
ISC
Repository
github
Last release
6 years ago

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!

1.1.0

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago