For those who needs this later, you can set up http proxy and send a simple get request to https://api.ipify.org , it will give you the ip adress in plain text, no need to parse the json.
One of many simple and easy ways to do it.
yes, I hope that you are entering the ip of the proxy, and not your computer. Check which ip you have allowed for these proxies and whether it corresponds to the ip of the computer on which you are running the BAS. Also check if this proxy works in a normal browser.
Yes, i also faced this problem, what i did was if file size was > 100kb then i delete cookies and bot will check if cookies are not present then it will call login function and new cookies file will be saved which will be less than 100 kb.