Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Problem with NTLM to download data
#1
Hello,

I am new in python and after two days of research I am stuck on a little issue with API and NTLM package for Anaconda. I want to grab data from my office's website (we need to use credentials) it was working perfectly on the IDE provided by Python but for various reasons I have decided to switch for Anaconda. I try to use the same code on Spyder (with anaconda) if I use the version 2.7 I have an error 401 but the code is 'working' otherwise I have on the IDE 3.5 an error occuring due to the ntlm package.

Any help would be nice please I give you a draft of the code I wrote (the one which is working on python IDE):
def Elastik(date,algo=""):

   import requests
   from ntlm import HTTPNtlmAuthHandler

    url='blabla'
    user="toto"
    password="toto"
    response=requests.get(url,auth=HttpNtlmAuth(user,password))
    response=str(response.text).split(",")
    return result
Thx in advance for the help provided!!!!!!
Quote
#2
When you installed NLTK did you install the Corpus?
If you need instructions, they are here
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  o365 special subject mail download issue anna 3 230 May-16-2019, 07:16 PM
Last Post: micseydel
  How to get python to download YouTube videos in the background? Pythenx 11 776 Mar-25-2019, 04:57 AM
Last Post: samsonite
  Download multiple large json files at once halcynthis 0 262 Feb-14-2019, 08:41 AM
Last Post: halcynthis
  Import Library but Download first? OscarBoots 15 1,362 Feb-07-2019, 03:07 AM
Last Post: snippsat
  Download data from webpage after POST request AlDe 0 238 Feb-02-2019, 06:26 AM
Last Post: AlDe
  Problem with CSV download imtiazu 2 410 Nov-12-2018, 02:03 AM
Last Post: snippsat
  How can read and download the attachment from the mail using while loop in IMAPlib Py Samjith 0 513 Oct-11-2018, 07:15 AM
Last Post: Samjith
  download file from google drive .. evilcode1 7 1,716 Sep-21-2018, 06:13 PM
Last Post: evilcode1
  Download multiple images with one click andie31 0 488 Sep-13-2018, 10:37 AM
Last Post: andie31
  Download multiple images and rename them andie31 4 698 Sep-13-2018, 10:26 AM
Last Post: andie31

Forum Jump:


Users browsing this thread: 1 Guest(s)