Hi,
can anyone help me with this issue? I am unable to download SAP Notes from python with my SCN Id.
I tried several ways to do this, for example:
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import requests from requests.auth import HTTPBasicAuth asapnote = "http://service.sap.com/sap/support/notes/1775242" username = "S00XXXXXX" password = "XXXXXXXXX" r = requests.get(asapnote, auth=HTTPBasicAuth(username, password), allow_redirects=True) print ("RC: %d" % r.status_code) print (r.headers['content-type']) print (r.encoding) print (r.encoding) print (r.text)
But I always get the following:
RC: 401 text/html ISO-8859-1
I am interested in extract 'Symptom' and 'Other tems' sections and build my own database of terms to search quickly.
Is this possible?
Thanks in advance