摘要: //我先准备一个记事本准备页面网址 s=页数 q=搜索值 //爬取相对的网页数据 //找到图片的网址在源代码中ctrl+f 找到TB1xjf5dFhM8kjiszfwxxcib的代码复制用正则精准爬取 //遍历结果 import urllib.requestimport resuo="夹克男"key 阅读全文
posted @ 2018-05-21 14:52 纯情 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 代理网址 http://www.xicidaili.com urllib.request.ProxyHandler({"http":端口}) //代理操作 urllib.request.build_opener(代理名,urllib.request,HTTPHandler) import urlli 阅读全文
posted @ 2018-05-21 08:09 纯情 阅读(137) 评论(0) 推荐(0) 编辑