메뉴 건너뛰기

Hello :0

import requests, base64
import time
import json


url  = "https://x.x.x.x"
usrPass = "test:test"
b64Val = base64.b64encode(usrPass)
header = {"Authorization": b64Val}

s = requests.session()
s.get(url,headers=header, verify=False )

while True:
 r = s.get(url+"/1")
 r.content
 time.sleep(5)