import requests from requests.auth import HTTPBasicAuth
auth = HTTPBasicAuth(アカウント名, パスワード)requests.post(URL, auth=auth)