Python Basics Download a CSV Files With Urllib

preview_player
Показать описание
Learn how to use urlretrieve from urllib to download a CSV file and save it to your computer

twitter: @python_basics
Рекомендации по теме
Комментарии
Автор

What I like about these videos is that they are short, sweet, and to the point. The "digestable" lengths of these videos makes it easier for me to consume and, more importantly, retain. Thank you @python_basics

vacowboy
Автор

Short and crisp and to the point. Thanks for the video which solved my query.

Kumar-vspp
Автор

Thank you for your efforts to make python tutorials easy to understand and useful.

hextav
Автор

Quick! Effective!! usefull! Gracias Amigo!!

jhonhenryballen
Автор

Thank you you save my life
God bless you!!!!

bezualemfisseha
Автор

If am stuck, trying to figure how to fix the issue where the csv file called ur.csv has all of the csv url link and I am unable to retreive all of the csv link to save to a csv file but when i print the index, it prints the all of the links. When I do run it then i will only pick one link .
import csv
from urllib.request import urlretrieve as retrieve
with open('url.csv', 'r') as inputfile:
reader = csv.DictReader(inputfile, delimiter=', ')
for row in reader:
url = (row['HTML Link'])
id = (row['id'])
retrieve(url, ''url'+id+'.csv')

bhangra
Автор

could not get to work... old link address. even tried:
which does download the file into my downloads folder, but does not work in python script / IDLE.

blueicewolfgmail
Автор

What happens if we enter wrong url? what error is thrown by python?

rishabkhawad
Автор

What if we cannot copy the download link address and if it hidden. How should we gather download url in that case

Mishmashes
Автор

What if it's a zipfile and I want to unzip and read it on python?

wiltait
Автор

how do i add DateTime to the file name?

duylam