jw_scraper

package module
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: May 6, 2019 License: MIT Imports: 9 Imported by: 0

README

浙江大学教务网爬虫 SDK(待补充)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsJwCookie added in v0.2.0

func IsJwCookie(cookie *http.Cookie) bool

func NewHttpError added in v0.4.0

func NewHttpError(err error) error

Types

type HttpService

type HttpService interface {
	GetLoginPage() (page string, err error)

	Login(username, password, viewState string) (jwbCookie string, err error)

	GetDefaultCourses(stuId, jwbCookie string) (page string, status int, err error)

	GetCourses(stuId, jwbCookie, schoolYear, semester, viewState, eventTarget string) (page string, status int, err error)

	GetDefaultExams(stuId, jwbCookie string) (page string, status int, err error)

	GetExams(stuId, jwbCookie, schoolYear, semester, viewState, eventTarget string) (page string, status int, err error)

	GetScoresBase(stuId, jwbCookie string) (page string, status int, err error)

	GetScores(stuId, jwbCookie, schoolYear, viewState string) (page string, status int, err error)

	GetMajorScores(stuId, jwbCookie string) (page string, status int, err error)

	GetTotalCredit(stuId, jwbCookie string) (page string, status int, err error)
}

func NewHttpService

func NewHttpService(rawBaseUrl string) HttpService

Jump to

Keyboard shortcuts

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