I want to read a json file from my server:103.227.176.29 but got an error"invalid literal for int() with base 10: '103.227.176.29" and I don't know how to fix it. What can I do to fix this problem?
from contextlib import closing
from fabric.network import connect
user = 'cortekr1_cuong'
password = '12345678'
host = '103.227.176.29'
port = '3306'
remote_file = '/RBICloudv1/static/json/vietnamprovince/vn.json'
with closing(connect(user, password, host, port)) as ssh, \
closing(ssh.open_sftp()) as sftp, \
closing(sftp.open(remote_file)) as file:
for line in file:
print(line)