Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to connect to Qlik sense server using python scripts

Please provide me the sample python scripts to connect to the Qliksense server using credentials authentication.

2 Replies
Anonymous
Not applicable
Author

Hi,

     I'm trying to publish the .qvf files saved on my local folders to one of the streams on qliksense sever with python scripts. Since there are some issues in sharing the certificates of Qlik sense server with users, I had to login the server only with windows credentials. Please find my code below.


import qrspy

qrs = qrspy.ConnectQlik(server='https:devserver.com',credential='username',password='password')

Also I tried with few other possible syntax.

qrs = qrspy.ConnectQlik(server='https:devserver.com',credential='domain\\username',password='password'

)


But getting the below exception.

requests.exceptions.ConnectionError: HTTPSConnectionPool(host='https', port=443): Max retries exceeded with url: //localhost.com:4848/qrs/user?xrfkey=jmiJf3ZoKEpXC9rg (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x032B0DD0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',))

Please help me on how to get this issue resolved.

Thank you