天天看點

python爬蟲

目錄

​Python爬蟲​

​​環境​​

​​第一個程式​​

​​html狀态碼(需要記住)​​

​​導包的路徑​​

​​*參數​​

​​XHR​​

​​登入校園網​​

​實驗2​

​​1​​

​​2​​

Python爬蟲

cmd 視窗

python --version pip --version pip config set global.index-url ​​https://pypi.tuna.tsinghua.edu.cn/simple​​ pip install pymysql pip list | find "requests" python -m pip install pip -U (更新)

vscode

安裝python , kite , jupyter

安裝路徑下的lib路徑下的site裡

一個 * : 元組方式

兩個 ** : 字典方式

xml http requests