作者SuperBu (SonGohan)
看板Python
标题[问题] python在URL中读取csv档
时间Tue Sep 26 14:25:38 2017
请问各位大大们
假设有一个.csv档在url中
可是这个网页是https
那该怎麽读它呢
我会用urllib读http中的.csv档但无法读.https,是不是要用ssl模块之类的
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 101.15.48.183
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Python/M.1506407140.A.005.html
1F:→ kenduest: 显示有什麽错误吗?另外一般 http 请求目前大多 09/26 16:33
2F:→ kenduest: 都用 requests 比较简单, requests.get(url) 这类 09/26 16:34
3F:→ kenduest: 不过需要用 pip 另外装,不是标准的 module 09/26 16:34
4F:推 steveyeh987: 资料科学? 09/27 01:25
5F:推 steveyeh987: 最简单的方法应该是用pandas.read_csv去读 09/27 01:30
6F:→ kenduest: 最近好像蛮多感觉是作业的?脸书与这边都很多类似的 09/27 10:25