'Is there a way to control Nord vpn via macOS command line or python library?

Im writing a python program that performs a redundant task. After the program loops a certain number of times I need to be able to switch VPN servers and start over. So i'm basically trying to use Nord VPN as a proxy in python. Can anyone point me in the right direction?



Solution 1:[1]

I am not sure, but it seems their python API might be doable for the task described. It does enable you to connect to VPN servers through python, so I suppose you can just detect, when you need to change the server, and then just connect to it with their API.

Solution 2:[2]

with the command "scutil --nc stop "NordVPN NordLynx""

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 ms99
Solution 2 Jonas Campos