• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






张家欢。。

 
 

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 张家欢。。 阅读(493) 评论(0) 推荐(0)
 
标题和价格的爬取,主要是遍历的方法
摘要: import reimport urllib2def get_html(): html = urllib2.urlopen("http://uland.taobao.com/sem/tbsearch").read() r = r'target="_blank">&yen; <strong>(.*)< 阅读全文
posted @ 2016-11-22 16:59 张家欢。。 阅读(252) 评论(0) 推荐(0)