https://github.com/po8klasie/lava
API wrapper for Vulcan recruitment system
https://github.com/po8klasie/lava
api-wrapper education highschool puppeteer scraper
Last synced: about 2 months ago
JSON representation
API wrapper for Vulcan recruitment system
- Host: GitHub
- URL: https://github.com/po8klasie/lava
- Owner: po8klasie
- Created: 2019-06-11T20:13:40.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T05:57:30.000Z (over 3 years ago)
- Last Synced: 2026-03-07T21:40:12.627Z (3 months ago)
- Topics: api-wrapper, education, highschool, puppeteer, scraper
- Language: JavaScript
- Homepage: https://npm.im/@warsawlo/lava
- Size: 128 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Lava
API wrapper for Vulcan recruitment system.
## Installation
```bash
yarn add @warsawlo/lava
```
## Usage
```javascript
const fs = require('fs')
const SearchConfig = require('@warsawlo/lava/utils/SearchConfig')
const searchResultsToJSON = require('@warsawlo/lava/utils/searchResultsToJSON')
const {
WARSAW_AFTER_SECONDARY_SCHOOL_URL,
WARSAW_AFTER_PRIMARY_SCHOOL_URL
} = require('@warsawlo/lava/urls/2019')
const Lava = require('./src/Lava')({
baseURL: WARSAW_AFTER_SECONDARY_SCHOOL_URL
});
(async () => {
const Search = new Lava.Search()
const results = await Search.search(new SearchConfig({
query: 'batorego',
city: 'Warszawa'
}))
await Search.cleanUp()
results
.pipe(searchResultsToJSON)
.pipe(fs.createWriteStream('./schools.json'))
const school = new Lava.School({
id: 104
})
await school.load()
school.getDescription()
school.getClasses()
school.getAdditionalInfo()
})()
```
## Docs
To view docs go to [our wiki](https://github.com/WarsawLO/lava/wiki)