How to change the IP of selenium webdriver

I'm scraping a website and sometimes it temporarily blocks my IP. How do I have to interact with JS elements I'm using selenium (I know it's not ideal for this type of Service). My problem is time to change the IP through a proxy server, my code is as follows:

from selenium import webdriver
from http_request_randomizer.requests.proxy.requestProxy import RequestProxy

req_proxy = RequestProxy()
proxies = req_proxy.get_proxy_list()    

brasa = [proxy for proxy in proxies if proxy.country == 'Brazil']

random = np.random.randint(0, 30)
PROXY = brasa[random].get_address()
    
webdriver.DesiredCapabilities.CHROME['proxy']={
    "httpProxy":PROXY,
    "ftpProxy":PROXY,
    "sslProxy":PROXY,
    "proxyType":"MANUAL",
    }

driver = webdriver.Chrome()
driver.get('https://whatsmyip.com/')

By the tutorials I looked at everything is right, but the ip on the site that I pass to webdriver does not change.

Author: LearningToCode, 2020-07-27