from bs4 import BeautifulSoup as BS
import requests
URL = 'https://2ip.ru/'
from requests.auth import HTTPProxyAuth
PROXY_URLS = {
# 'https': 'https://proxy.site:10999',
'http': 'http://proxy.site:10999'
}
AUTH = HTTPProxyAuth('UKUk9E', 'syH2fYF5yfug')
response = requests.get(URL, proxies=PROXY_URLS, auth=AUTH)
print(BS(response.content, 'lxml').find('div', id='d_clip_button').text.strip())