NordVPN-switcher handles these kind of random-pick use-cases with ease. Especially on windows, taking a random pick within a wider region (e.g.
txt files you don't even need to know how to run a terminal/cmd command at all!
You don't need to construct some chaotic.
This means you're able to share your code with your colleagues without having to worry about the OS they use.
NordVPN-switcher automatically detects your OS and executes the appropriate code automatically. You don't need to perform any changes to your script.I realize there are multiple NordVPN-related packages available, but they only work for Linux and/or are not exactly user-friendly.
Pip install nordvpn-switcher and you're all set!
Works both on Linux and Windows without any required changes to your code. Rotate between different NordVPN servers with ease. To all of those who've sent me feedback and/or reported bugs: thank you! NordVPN-switcher Some users - especially if they run the NordVPN app on slow machines - are unable to rotate between servers because the app takes a while to start up.Īdded more example code in the demo.py file (see files on Github) The script uses the fake_useragent package for improved header-inputĪdded an additional pause to slow the script down on Windows. When the user combines this with the area_input parameter, it is possible to run NordVPN switcher right from the get-go without any required user-input on Linux (see demo.py for example code). When the skip_settings parameter is set to 1, nordvpn-switcher will assume the user does not wish to execute additional settings. This is a neat function for webscraping purposes.Īdded a 'skip settings' functionality (for Linux users only): Linux users are asked whether they'd like to execute additional settings (such as whitelisting ports) whenever they run the initialize_VPN() function. When the 'complete rotation' parameter is set to 1, server rotation is truly random. This means you're often connecting to the same small subset of fast servers. country, state), since NordVPN automatically opts for the 'best' server in that particular area. This is different from connecting to a specific region (e.g. After rotation and thus when using the rotate_VPN() function, it checks whether your new ip is different from not only the previous ip, but also your original ip.Īdded a 'complete rotation' functionality: allows you to rotate between the 4000+ available servers at random. while scraping), the script saves your original ip when using the initialize_VPN() function in the instructions dict/file.