会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
张家欢。。
Powered by
博客园
博客园
|
首页
|
新随笔
|
联系
|
订阅
|
管理
2016年11月22日
GUI加爬虫
摘要: # - *-coding:utf-8-*-from Tkinter import *from ScrolledText import ScrolledText #滚动文本框import urllib,reurl_name=[]a=1def get(id): global a url='http://
阅读全文
posted @ 2016-11-22 19:32 张家欢。。
阅读(470)
评论(0)
推荐(0)
编辑
标题和价格的爬取,主要是遍历的方法
摘要: import reimport urllib2def get_html(): html = urllib2.urlopen("http://uland.taobao.com/sem/tbsearch").read() r = r'target="_blank">¥ <strong>(.*)<
阅读全文
posted @ 2016-11-22 16:59 张家欢。。
阅读(245)
评论(0)
推荐(0)
编辑