scrape

package
v2.0.0-...-d3d1f1d Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnterInfo

type EnterInfo struct {
	// contains filtered or unexported fields
}

func (*EnterInfo) Knock

func (info *EnterInfo) Knock(landMarkText string) (*ScrapeAgent, error)

2023/06/09 landMarkText := "管理者メニュー"

type ScrapeAgent

type ScrapeAgent struct {
	Collector  *colly.Collector
	SchoolInfo *loilo.SchoolInfo
}

func Login

func Login(loginInfo *setup.LoginRecord) (*ScrapeAgent, error)

func (*ScrapeAgent) DownloadAsStaticHTML

func (agent *ScrapeAgent) DownloadAsStaticHTML(saveDir string, url string) error

this is only for IN-DEV func save html file

func (*ScrapeAgent) GenClassesInfo

func (agent *ScrapeAgent) GenClassesInfo() error

WIP 全クラス情報を取得 (所属しているアカウントは含まず、クラスのみ) -> loilo.ClassListProps

func (*ScrapeAgent) GetClassInfoById

func (agent *ScrapeAgent) GetClassInfoById(groupId int) error

WIP 各クラスごとのデータを取得 -> loilo.ClassProps

func (*ScrapeAgent) ParseStaticHTML

func (agent *ScrapeAgent) ParseStaticHTML(path string) error

this is only for IN-DEV func parse (local) static html file

func (*ScrapeAgent) SaveContent

func (agent *ScrapeAgent) SaveContent(url, filePath string) error

URL先のコンテンツを決められた形式(filePath)で保存

Jump to

Keyboard shortcuts

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