An open API service indexing awesome lists of open source software.

https://github.com/realshaunoneill/elitemoodlescraper

A modern and simple to use object orientated moodle scraper
https://github.com/realshaunoneill/elitemoodlescraper

module moodle npm scraper web

Last synced: about 2 months ago
JSON representation

A modern and simple to use object orientated moodle scraper

Awesome Lists containing this project

README

          

Elite Moodle Scraper


A modern and simple to use object orientated moodle scraper




Build Status


Discord Invite


Version


NPM Downloads



NPM Info




## 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
```javascript
npm install --save elite-moodle-scraper
```


### Example
```javascript
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](https://xelitexirish.github.io/EliteMoodleScraper/) 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!