import requests
url='http://xxx.xxx.xx'
html= requests.get(url).text.splitlines()
我知道get()作用
不過那是書上有寫的到,我試著去看requests模組下get()的code,看不出它是可以取得
網頁內容的東西。
requests模組下還有其他用法requests.xxx()
我要如何知道它還有哪些,並且功能是什麼?
上方requests.get(url) 後面接text.splitlines()
我知道requests.get() 接的原因
書上有寫它的作用,但是我不知道text.splitlines()為什麼可以這樣接,這函式在哪。
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 211.72.106.139
※ 文章網址: https://www.ptt.cc/bbs/Python/M.1483214366.A.A92.html
→
01/01 04:25, , 1F
01/01 04:25, 1F
→
01/01 04:26, , 2F
01/01 04:26, 2F
※ 編輯: a82 (211.72.106.139), 01/01/2017 04:44:25
→
01/01 13:55, , 3F
01/01 13:55, 3F
→
01/01 13:56, , 4F
01/01 13:56, 4F
→
01/01 14:01, , 5F
01/01 14:01, 5F
→
01/01 14:02, , 6F
01/01 14:02, 6F
→
01/01 14:03, , 7F
01/01 14:03, 7F
→
01/01 14:03, , 8F
01/01 14:03, 8F
→
01/02 22:24, , 9F
01/02 22:24, 9F