Skip to content

About

Quick wrapper for the Windscribe CLI for Python

Resources

Stars

7 stars

Watchers

2 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

windscribe-python-wrapper

Quick & dirty wrapper for the Windscribe CLI for Python

Prerequisites

This needs to be run on Linux as there is only a Windscribe CLI for Linux (as far as I'm aware).

Visit https://windscribe.com/guides/linux for Windscribe CLI installation instructions for your favorite distro. This was made using an Ubuntu VM.

Usage

There are two necessary files:

  1. servers.txt - text file which holds the list of server names you'd like to choose from if connecting to a random server.
  2. windscribe.py - file which contains the Windscribe class. Remember this is quick and dirty!

Example:

Log in and connect to random server
from windscribe import Windscribe

vpn = Windscribe(<serverlist file>, <user>, <password>)
vpn.connect(rand=True)

Log in and connect to specific server
from windscribe import Windscribe

vpn = Windscribe(<serverlist file>, <user>, <password>)
vpn.connect(server="Cheese")

Methods

Login

vpn.login(<user>, <password>) This is automatically called when instantiating the class. No need to call it again unless you call the logout() method.

Locations

vpn.locations() Print the available connection locations to the shell. This includes location, short name, city, label, and Pro-only indicator.

Connect

vpn.connect(<server>, <rand = True/False>) This connects to a server if specified, a random server if rand = True, or the best available if both arguments are not passed. Server should be the Label of the server (for example, server in Las Vegas is labelled "Casino". Get the labels for all available servers by using the locations() method.

Disconnect

vpn.disconnect() Disconnect from the current server.

Logout

vpn.logout() Log out of the current logged in user.

About

Quick wrapper for the Windscribe CLI for Python

Resources

Stars

7 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages