Не могу понять в чем проблема:
import requests
params = (
('query', ‘sale’),
('snip_start', ‘<strong>’),
('snip_end', ‘</strong>’),
)
response = requests.get('https://usx.api.mailchimp.com/3.0/search-campaigns', params=params, auth
'anystring', ‘apikey’))Понятное дело здесь: auth
'anystring', ‘apikey’)) ввожу логин и apikeyвыводит ошибку:
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='usx.api.mailchimp.com', port=443): Max retries exceeded with url: /3.0/search-campaigns?query=sale&snip_start=%3Cstrong%3E&snip_end=%3C/strong%3E (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x107164ef0>: Failed to establish a new connection: nodename nor servname provided, or not known'))