Skip to content
/ assassin Public

Scripts for scraping the brno.assassin.cz game page

Notifications You must be signed in to change notification settings

d3jv/assassin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Assassin

Dependencies

  • hxselect from html-xml-utils

config

Create a config file in this folder with the name assassin.conf and the following contents:

#!/bin/bash                                # Set the environment vars with bash
export PASSWORD_FILE=path/to/passwd        # Path to a file containing the brno.assassin.cz password on a single line (relative to this dir)
export COOKIES_FILE=path/to/cookies        # Path to a file where the login script will store the session cookies (relative to this dir)
export HXSELECT=/path/to/hxselect          # path to the hxselect executable. Defaults to searching the PATH for "hxselect"

Usage

Best used with Discord webhooks. Not sure if the format is widely used so it might not work with anything similar.

  • Log in to the website using login.sh <username>
  • Fetch family leaderboard: rodiny.sh <webhook_url>
  • Fetch players leaderboard: hraci.sh <webhook_url>

Crontab

You can install crontabs to have the script run at periodic intervals

  • Remember to set the ASSASSIN_ROOT env var to this directory

Example

5 0 * * * ASSASSIN_ROOT=/home/dave/assassin /home/dave/assassin/login.sh dave
6 0 * * * ASSASSIN_ROOT=/home/dave/assassin /home/dave/assassin/rodiny.sh example.com
6 0 * * * ASSASSIN_ROOT=/home/dave/assassin /home/dave/assassin/hraci.sh example.com

About

Scripts for scraping the brno.assassin.cz game page

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages