摘要: 安装方式 $ pip install requests 基本GET请求(headers参数 和 parmas参数) 1.最基本的GET请求可以直接用get方法 response = requests.get("http://www.baidu.com/") # 也可以这么写 response = r 阅读全文
posted @ 2017-10-12 21:05 cuzz_z 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 1.有些网页内容使用AJAX加载,AJAX一般返回的是JSON,直接对AJAX地址进行post或get,就返回JSON数据了。 2.用抓包工具分析https://movie.douban.com/j/chart/top_list?type=11&interval_id=100%3A90&action 阅读全文
posted @ 2017-10-12 19:54 cuzz_z 阅读(267) 评论(0) 推荐(0) 编辑