Documentation ¶
Index ¶
- type EnterInfo
- type ScrapeAgent
- func (agent *ScrapeAgent) DownloadAsStaticHTML(saveDir string, url string) error
- func (agent *ScrapeAgent) GenClassesInfo() error
- func (agent *ScrapeAgent) GetClassInfoById(groupId int) error
- func (agent *ScrapeAgent) ParseStaticHTML(path string) error
- func (agent *ScrapeAgent) SaveContent(url, filePath string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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)で保存
Click to show internal directories.
Click to hide internal directories.