About The Project
OLS (OL scraper) is a webscraper written in golang which is meant to fetch data
from the football manager browser game Onlineliga.
Currently capable of scraping:
- league
- team
- player
- match (WIP)
Currently supported targets:
Table of Contents
Built With
Getting Started
The scraper fetches data and saves the output by default into a JSON file at the exact same directory
where the application is executed.
Additionally it can analyze OL teams according to Boonlight's Excel sheets
and dump the result into a CSV file.
Disclaimer
❗ Disclaimer |
Scraping and analyzing this game is not allowed by Terms of Service. |
|
Quickstart
Install the OL scraper and open the help menu
go install gitlab.com/onlineliga/ols@latest
ols --help
Prerequisites
Optional:
Installation
There are two options to run the application.
Either by using golang or the compiled binaries which you can find under releases.
Install with golang (recommended)
You can install the application with golang specifying a release.
go install gitlab.com/onlineliga/ols@v?.?.?
To install the latest version use @latest
. Works on every platform.
Install binaries
Following examples will install latest
version
Windows Powershell
installation with Powershell:
- create directory and remove curl alias
mkdir $HOME\ols\
Remove-Item alias:curl
- fetch latest tag and download binaries
$JSON = curl -s https://gitlab.com/api/v4/projects/31154129/repository/tags | ConvertFrom-Json
$TAG = $JSON[0].name
curl -o $HOME\ols\ols.exe -L https://gitlab.com/onlineliga/ols/-/jobs/artifacts/$TAG/raw/binaries/ols-windows-amd64.exe?job=build-release
Bash
installation with bash:
- create directory
mkdir -p ~/.local/bin/
- fetch latest tag and download binaries
TAG=$(curl -s https://gitlab.com/api/v4/projects/31154129/repository/tags | jq -r .[0].name)
curl -o ~/.local/bin/ols -L https://gitlab.com/onlineliga/ols/-/jobs/artifacts/${TAG}/raw/binaries/ols-linux-amd64?job=build-release
- make binaries executable
chmod +x ~/.local/bin/ols
Note: in the Downloads section you can find binaries for all available platforms
Downloads
OLS is crosscompiled for
Usage
Windows
Add the application directory to your PATH
environment variable so you can call it from anywhere.
Note: In order to make it persistent visit Microsoft docs.
Now you can use the application like this:
ols --help
Linux
ols --help
Examples
Powershell examples
Contributing
Community Discord server