【发布时间】:2020-04-07 01:58:24
【问题描述】:
我正在尝试从该网站下载自定义 XML 文件: http://data.un.org/Data.aspx?d=CLINO&f=ElementCode:11;StatisticCode:01&c=1,2,5,17,18,44&s=CountryName:asc,WmoStationNumber:asc,StatisticCode:asc&v=1
我最熟悉的方法是使用pd.read_csv,但是这种情况下右键下载链接,复制链接地址生成:
javascript:Download('xml','CLINO','ElementCode:11;StatisticCode:01','s=CountryName:asc,WmoStationNumber:asc,StatisticCode:asc','c=1,2,5,17,18,44','');
我尝试了here 发布的解决方案,但不幸的是,该过程在第 4 步出现了偏差。
使用python,如何访问.xml文件下载并保存?
【问题讨论】:
标签: javascript python url download python-requests