天天看点

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