Python 如何下载数据帧中链接中的图像?

Python 如何下载数据帧中链接中的图像?,python,pandas,Python,Pandas,我有一个带有图像链接的数据框: deputados_sites.info() <class 'pandas.core.frame.DataFrame'> RangeIndex: 512 entries, 0 to 511 Data columns (total 4 columns): Nome 512 non-null object Num_referencia 512 non-null object Link 512 non

我有一个带有图像链接的数据框:

deputados_sites.info()
<class 'pandas.core.frame.DataFrame'>
RangeIndex: 512 entries, 0 to 511
Data columns (total 4 columns):
Nome              512 non-null object
Num_referencia    512 non-null object
Link              512 non-null object
Link_foto         512 non-null object
dtypes: object(4)
memory usage: 16.1+ KB
deputados_sites.info()
范围索引:512个条目,0到511
数据列(共4列):
Nome 512非空对象
Num_referencea 512非空对象
链接512非空对象
链接到512非空对象
数据类型:对象(4)
内存使用率:16.1+KB
这是“链接到”栏。列中的数据示例:“”


我在用蟒蛇和熊猫。请问,有没有办法使用Python下载这些图像?

类似的方法可能会奏效

import urllib.request

urllib.request.urlretrieve("http://www.camara.gov.br/internet/deputado/bandep/160600.jpg", "local-filename.jpg")

像这样的东西可能会有用

import urllib.request

urllib.request.urlretrieve("http://www.camara.gov.br/internet/deputado/bandep/160600.jpg", "local-filename.jpg")

谢谢,我现在就迭代谢谢,我现在就迭代