A tool to use the webeep platform of the Politecnico di Milano directly from the command line.

Overview

webeep-cli

A tool to use the WeBeep platform of the Politecnico di Milano directly from the command line.

License Language Downloads

Features

  • Browse the course folders as if they were local on your pc
  • Download single files, multiple files or entire folders with one simple command
  • View direct links related to specific files or folders and open them with a single click directly in your browser

Attention

The webeep view must be the default matrix style and the language must be set to Italian.

Installation

Download the release corresponding to your operating system from the panel on the right or directly from your terminal.

For Linux:

wget https://github.com/simoneorlando97/webeep-cli/releases/download/v1.1/webeep-linux

For Mac:

wget https://github.com/simoneorlando97/webeep-cli/releases/download/v1.1/webeep-macos

For Windows:

wget https://github.com/simoneorlando97/webeep-cli/releases/download/v1.1/webeep-win.exe

Once downloaded you need to give it execute permissions.

On Linux:

chmod +x ./webeep-linux

On Mac:

chmod +x ./webeep-macos

Finally, to be able to call webeep at any time from your terminal.

On Linux:

sudo mv ./webeep-linux /usr/bin/webeep

On Mac:

sudo mv ./webeep-macos /usr/local/bin/webeep

For Windows users it is recommended to run the program within powershell.

Usage

The first time you start webeep-cli you will be asked for the credentials of the Politecnico di Milano.

webeep

If you change the password on the online services you can force the updating of the credentials on webeep-cli via

webeep --login

Once logged in, you can list your course folders via

ls

If you also want the respective links of files and folders you can use

ls -l

You can navigate through the folders using

cd number_associated_with_the_folder
cd ..

To find out which course you are in you can use

pwd

You can download files via

get n_1 n_2 n_3 -d destination_path

where n_* are the numbers associated with the files you want to download and destination_path is the folder where you want to save these files.

If you want, instead, to download all the files in a folder you can use the command

get -all destination_path

To clean the console

clear

and finally to exit webeep-cli

exit
You might also like...
A system clipboard command line tools which inspired by pbcopy & pbpaste but better to use.

rclip A command line tool which supports copy a file contents to the system clipboard or copy the contents of the system clipboard to a file. Install

🧠 A command-line utility for switching git branches more easily. Switch branches interactively or use a fuzzy search to find that long-forgotten branch name.
🧠 A command-line utility for switching git branches more easily. Switch branches interactively or use a fuzzy search to find that long-forgotten branch name.

git-smart-checkout A git command extension for switching git branches more efficiently. About Interactively switch branches or fuzzy search for that f

A robust, customizable, blazingly-fast, efficient and easy-to-use command line application to uwu'ify your text!
A robust, customizable, blazingly-fast, efficient and easy-to-use command line application to uwu'ify your text!

uwuifyy A robust, customizable, blazingly-fast, efficient and easy-to-use command line application to uwu'ify your text! Logo Credits: Jade Nelson Tab

command line tools for coprolite research (paleontology and archaeology): estimate the producer's body mass based on coprolite diameter by the use of regression models
command line tools for coprolite research (paleontology and archaeology): estimate the producer's body mass based on coprolite diameter by the use of regression models

OVERVIEW OF COPROSIZE coprosize employs power, exponential and cubic regression models allowing to estimate the producer's body mass based on coprolit

Command-line HTTP client for sending a POST request to specified URI on each stdin line.

line2httppost Simple tool to read lines from stdin and post each line as separate POST request to a specified URL (TCP connection is reused though). G

Edit a file directly on Amazon S3 in CLI.
Edit a file directly on Amazon S3 in CLI.

s3-edit-rs The original idea for this project comes from s3-edit written in Go by tsub. I started this project for educational purposes, and it is my

Shellcode Runner/Injector in Rust using NTDLL functions directly with the ntapi Library
Shellcode Runner/Injector in Rust using NTDLL functions directly with the ntapi Library

RustSCRunner Shellcode Runner/Injector in Rust using NTDLL functions directly with the ntapi Library. Surprisingly this is my first ever Rust project

The auto-managed -sys crate for Apple platforms using bindgen directly from build environment

apple-sys Apple platforms have a rather monotonous programming environment compared to other platforms. On several development machines, we will depen

A terminal ASCII media player. View images, gifs, videos, webcam, YouTube, etc.. directly in the terminal as ASCII art.
A terminal ASCII media player. View images, gifs, videos, webcam, YouTube, etc.. directly in the terminal as ASCII art.

Terminal Media Player View images, videos (files or YouTube links), webcam, etc directly in the terminal as ASCII. All images you see below are just m

Comments
  • [Linux] Error on main thread at `Option::unwrap()`

    [Linux] Error on main thread at `Option::unwrap()`

    After a successful login with my Polimi credentials the program returns

    Successfully login!
    Fetching courses' informations, this may take a while.
    thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src/utils/html_parser.rs:11:66
    note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
    

    Currently i am running Manjaro on kernel 5.13 i did not move the script to the bin directory although i don't think this could result in an issue

    opened by ghost 2
  • Add automatic TOTP generation using TOTP Secret and Google Authenticator crate.

    Add automatic TOTP generation using TOTP Secret and Google Authenticator crate.

    This branch adds automatic generation of the required TOTP code by storing the Secret Key exported from an authenticator and using it to generate the required code. While this defeats the purpose of Two Factor Authentication, it is much more comfortable to use. The possibility to use an OTP generated elsewhere is also given. Also, this branch postpones the storing of credentials only after the login has taken place, so that only verified information is saved.

    opened by flakyferr 0
  • Added 2FA using OTP

    Added 2FA using OTP

    The only way to login by skipping SpID authentication is by enabling TOTP from within the online services settings. This fix allows the WeBeeP-cli to login using OTP and makes the program usable again.

    opened by flakyferr 0
  • [MacOS] Index Out of Bounds error

    [MacOS] Index Out of Bounds error

    After successfully executing all the steps for the installation, when I launch 'webeep' on MacOS terminal i got the following error:

    thread 'main' panicked at 'byte index 7 is out of bounds of `Errore`', src/utils/html_parser.rs:21:25
    stack backtrace:
       0:        0x10a1f8fc4 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h80b40bec9b25cdb7
       1:        0x10a21472e - core::fmt::write::h367e10cc391177e1
       2:        0x10a1f3006 - std::io::Write::write_fmt::h69f760cf0ceceb64
       3:        0x10a1fae89 - std::panicking::default_hook::{{closure}}::h6b461dbc832ae479
       4:        0x10a1fa970 - std::panicking::default_hook::hf6b37b6d4ff1b717
       5:        0x10a1fb4f5 - std::panicking::rust_panic_with_hook::hcc0074a2cdf70335
       6:        0x10a1fb035 - std::panicking::begin_panic_handler::{{closure}}::hafebb92bbb4f046c
       7:        0x10a1f9428 - std::sys_common::backtrace::__rust_end_short_backtrace::hbd3b6a5769847c0d
       8:        0x10a1faf9a - _rust_begin_unwind
       9:        0x10a2262af - core::panicking::panic_fmt::h84e4b5f5d5160f07
      10:        0x10a226688 - core::str::slice_error_fail::h22c6c4b91ff54d65
      11:        0x109fb71c8 - webeep::utils::html_parser::get_course_name::hc852915a446e5793
      12:        0x109fba0c5 - webeep::controller::controller::Controller::start::h675ca03e0201fcfc
      13:        0x109fae767 - webeep::main::hb5619191eb90bce2
      14:        0x109fbc31a - std::sys_common::backtrace::__rust_begin_short_backtrace::hb15e1320413d2af7
      15:        0x109fbc33c - std::rt::lang_start::{{closure}}::h9d4daa6d19827a6d
      16:        0x10a1fb944 - std::rt::lang_start_internal::h0c37a46739a0311d
      17:        0x109fb0f89 - _main
    
    opened by andreabosisio 6
Owner
Simone Orlando
Computer science and Engineering student(M.Sc)
Simone Orlando
Save image from your clipboard 📋 as an image file directly from your command line! 🔥

Clpy ?? Save copied image from clipboard as an image file directly from your command line! Note It works only on windows as of now. I'll be adding sup

Piyush Suthar 13 Nov 28, 2022
Small command-line tool to switch monitor inputs from command line

swmon Small command-line tool to switch monitor inputs from command line Installation git clone https://github.com/cr1901/swmon cargo install --path .

William D. Jones 5 Aug 20, 2022
Use the osu!direct button on the osu! website to download beatmaps directly to osu

osum!direct-web Use the osu!direct button on the osu! website to download beatmaps directly to osu! - without osu! supporter. Badges Usage Run the app

oSumAtrIX 1 Jan 21, 2022
H2O Open Source Kubernetes operator and a command-line tool to ease deployment (and undeployment) of H2O open-source machine learning platform H2O-3 to Kubernetes.

H2O Kubernetes Repository with official tools to aid the deployment of H2O Machine Learning platform to Kubernetes. There are two essential tools to b

H2O.ai 16 Nov 12, 2022
Bartib is an easy to use time tracking tool for the command line.

Bartib is an easy to use time tracking tool for the command line. It saves a log of all tracked activities as a plaintext file and allows you to create flexible reports.

Nikolas Schmidt-Voigt 346 Jan 2, 2023
Koi is a simple tool built to let you use ChatGPT through the command line

Koi is a simple tool built to let you use ChatGPT through the command line. It adds the ability to let ChatGPT run commands on your computer in order to help you out, or to help you out with complicated tasks.

Shivam Sharma 9 Mar 28, 2023
Pink is a command-line tool inspired by the Unix man command.

Pink is a command-line tool inspired by the Unix man command. It displays custom-formatted text pages in the terminal using a subset of HTML-like tags.

null 3 Nov 2, 2023
A simple TTS tool for Windows that reads directly from the clipboard.

Quick Text-To-Speech A simple TTS tool for Windows that reads directly from the clipboard or from textfiles that are dragged into the window. Screensh

Alexander 3 May 1, 2023
A command line tool written in Rust and designed to be a modern build tool + package manager for C/C++ projects.

CCake CCake is a command line tool written in Rust and designed to be a modern build tool + package manager for C/C++ projects. Goals To be easily und

Boston Vanseghi 4 Oct 24, 2022
Rust File Management CLI is a command-line tool written in Rust that provides essential file management functionalities. Whether you're working with files or directories, this tool simplifies common file operations with ease.

Rust FileOps Rust File Management CLI is a command-line tool written in Rust that provides essential file management functionalities. Whether you're w

Harikesh Ranjan Sinha 5 May 2, 2024