摘要: ``` import requests from bs4 import BeautifulSoup ## 获取token r1 = requests.get('https://github.com/login') s1 = BeautifulSoup(r1.text,'html.parser') t 阅读全文
posted @ 2019-11-17 23:01 程序员子枫 阅读(233) 评论(0) 推荐(0) 编辑
摘要: ``` import requests from bs4 import BeautifulSoup response = requests.get("https://www.autohome.com.cn/news/") # 1. content /text 的区别 # print(response 阅读全文
posted @ 2019-11-17 22:14 程序员子枫 阅读(146) 评论(0) 推荐(0) 编辑