Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
download from python
#1
I'd like to download a file present at follow link

But the follow code python get me the error "HTTPError: Unauthorized":

import urllib.request
url = 'https://query1.finance.yahoo.com/v7/finance/download/TEN.MI?period1=1451602800&period2=1569708000&interval=1d&events=history&crumb=NZczOoN5ibT'
urllib.request.urlretrieve(url, 'C:/dati/xxx.csv')
Reply


Messages In This Thread
download from python - by mpellegrini - Oct-01-2019, 04:18 PM
RE: download from python - by Larz60+ - Oct-01-2019, 07:32 PM
RE: download from python - by mpellegrini - Oct-02-2019, 07:41 AM
RE: download from python - by stranac - Oct-02-2019, 07:54 AM
RE: download from python - by mpellegrini - Oct-03-2019, 10:01 AM
RE: download from python - by stranac - Oct-03-2019, 10:34 AM
RE: download from python - by mpellegrini - Oct-03-2019, 10:44 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  M4S file extensin in Streaming video. How to download and use in Python Man_from_India 0 2,791 Aug-20-2020, 07:48 AM
Last Post: Man_from_India

Forum Jump:

User Panel Messages

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