Python Forum
Problem with NTLM to download data
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!!!!!!
Reply
#2
When you installed NLTK did you install the Corpus?
If you need instructions, they are here
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Failed to download Qualtrics data using API balaKrishnaV 4 3,810 Sep-16-2023, 03:12 PM
Last Post: Jfreeland
  Yfinance - Intraday stock data with yf.download diogo_80 2 5,870 Apr-29-2022, 05:07 AM
Last Post: processingclouds
  download with internet download manager coral_raha 0 2,879 Jul-18-2021, 03:11 PM
Last Post: coral_raha
  Looking for data/info on a perticular data-proccesing problem. MvGulik 9 3,780 May-01-2021, 07:43 AM
Last Post: MvGulik
  Code should download and output trading data tayy 2 2,592 Mar-04-2021, 04:07 AM
Last Post: tayy
  Download data from webpage after POST request AlDe 0 2,172 Feb-02-2019, 06:26 AM
Last Post: AlDe
  Problem with CSV download imtiazu 2 2,604 Nov-12-2018, 02:03 AM
Last Post: snippsat
  Problem with serial data. How do I ignor incorrect data? donmerch 1 2,890 Jul-11-2017, 01:55 AM
Last Post: donmerch

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020