python爬虫笔记(1-2)requests模块实例
摘要:
# 需求:获取网页,用requests import requests url = "http://www.baidu.com/" resp = requests.get(url) resp.encoding = "utf-8" # 抓取内容写入文件 with open("mybaidu222.ht 阅读全文
posted @ 2021-08-06 14:50 坐看浮云飘飘飘 阅读(74) 评论(0) 推荐(0) 编辑