Skip to content
This repository has been archived by the owner on May 18, 2023. It is now read-only.
/ ats4-scraper Public archive

Web scraper for ATS4 Portal, outputs JSON serialized data

License

Notifications You must be signed in to change notification settings

cvgore/ats4-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ats4-scraper

Goes through left_menu.php and fetches all departments and courses.

Note

Since it is very early alpha, there might be breaking changes in api, also there are some major/minor bugs, PR welcome.

Usage

For now, this is the only solution

import { RecurseScraper } from "ats4-scraper";
// const RecurseScraper = require("ats4-scraper");
const s = new RecurseScraper({
  baseUrl: "http://url/to/ats4/portal", // required
  outputPath: "data.json", // where scraped data should be stored, leave empty to disable
  maxRecursionDepth: 7, // how far should scraper go before throwing error | required
  initialDate: 0 // required for plan fetching | required
});
// awaitable method - does not return anything at the moment
s.run();
await s.run();
s.run().then(() => {})

Todo

  • Add CLI support
  • Add RateLimiter to all HTTP requests
  • Add caching support

and many more...

About

Web scraper for ATS4 Portal, outputs JSON serialized data

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published