Skip to content

Corps-Slesvico-Holsatia/wg_gesucht_updater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wg_gesucht_updater

Shared flat offers bumper for wg-gesucht.de

Installation

You need to have a Rust toolchain installed.

$ git clone https://github.com/Corps-Slesvico-Holsatia/wg_gesucht_updater.git
$ cd wg_gesucht_updater
$ cargo build --release

You'll find the built binary under target/release/wg_gesucht_updater{,.exe}.

Usage

The program has two operation modes:

CLI mode

In CLI mode you can pass the credentials and offer IDs via command line arguments:

$ wg_gesucht_updater cli --user-name=your@user.name --password=yourSecretPassword <ACTION> <id> [<id>...]

The supported actions are bump to bump offers, activate to activate offers and deactivate to deactivate offers.

Config file mode

In config file mode you can pass the path to a TOML configuration file:

$ wg_gesucht_updater config-file /etc/wg-gesucht.toml

The configuration file is expected to have the following format:

user_name = "your@user.name"
password = "yourSecretPassword"
timeout_sec = 10
user_agent = "your_preferred_user_agent_string"
bump = [ <id>, <id>, ... ]
activate = [ <id>, <id>, ... ]
deactivate = [ <id>, <id>, ... ]

The fields timeout_sec and user_agent are optional and have sensible defaults.
The lists bump, activate and deactivate are optional as well and default to empty lists.

About

Advertisement updater for wg-gesucht.de

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages