Skip to content
This repository was archived by the owner on Feb 20, 2026. It is now read-only.

v0.3.0

Choose a tag to compare

@dnabil dnabil released this 08 Oct 17:17
· 2 commits to main since this release
1ee36e3

Breaking changes from v0.1.x:

  • user.Login() now returns string (siam error login message) and err.

New:

  • feat: user.GetDataAndLogout, basically: Login() GetData() and Logout()
  • feat: user.GetKrs & ScrapeKrs (/krs.php)
  • feat: ScrapeAddCourse logic (/addcourse.php)
  • the go-colly collector is now public in user's field (user.C)
  • more stable & efficient (added some tests and fixed some bad logic)
    • added cloneCollector func for easy cloning of the collector before each web scraping func
    • fixed duplicate callbacks registered, by cloning collector for each scraping func
    • fixed where onhtml(*) callback is called numerous time by replacing it with onResponse
    • fixed logout error, by changing user login status in logout func
    • fixed login status checking, by checking it dynamically through callback for each request
    • changed naming convention for url & path variables (private variables)
    • made the C (colly collector) in user field global