resuqam

package
v0.0.0-...-301f747 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2015 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNoResults happens when the crawler cannot find any results.
	ErrNoResults = errors.New("No results for this class")
	// ErrInvalidGroupClass happens when the group, class or year is invalid.
	ErrInvalidGroupClass = errors.New("Invalid year/class/group")
	// ErrInvalidCodeNip happens when the user code or nip is invalid.
	ErrInvalidCodeNip = errors.New("Invalid code or nip")
	// ErrNotRegistered happens when the user isnt registered for the specified class.
	ErrNotRegistered = errors.New("Not listed for this class")
)

Functions

This section is empty.

Types

type Crawler

type Crawler struct {
	Client crawler.ResultGetterClient
}

Crawler for getting all grades of a user on Resultats UQAM website.

func NewCrawler

func NewCrawler() *Crawler

NewCrawler creates a new crawler object

func (*Crawler) Run

func (c *Crawler) Run(user *crawler.User) []crawler.RunResult

Run returns the results of all classes for the user

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL