上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 31 下一页
摘要: #去除img标签,1-7位空格,&nbsp; removeImg = re.compile('<img.*?>| {1,7}|&nbsp;') #删除超链接标签 removeAddr = re.compile('<a.*?>|</a>') #把换行的标签换为\n replaceLine = re.c 阅读全文
posted @ 2017-08-25 07:50 layfork 阅读(205) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- #coding=utf-8 import urllib import urllib2 import re import thread import time class QSBK: def __init__(self): self.pageIndex=1 self.user_agent = 'Mozill... 阅读全文
posted @ 2017-08-24 20:44 layfork 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 先获得cookie到文件 从文件取出cookie 阅读全文
posted @ 2017-08-24 14:08 layfork 阅读(4812) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*-#coding=utf-8 在开头加这个 阅读全文
posted @ 2017-08-24 11:30 layfork 阅读(161) 评论(0) 推荐(0) 编辑
摘要: import urllib2 try: response = urllib2.urlopen('http://www.baidu.com') except urllib2.URLError, e: print e.reason print response.read() 阅读全文
posted @ 2017-08-24 10:43 layfork 阅读(166) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/github_35160620/article/details/52486986 阅读全文
posted @ 2017-08-24 10:00 layfork 阅读(1454) 评论(0) 推荐(0) 编辑
摘要: postimport urlliimport urllib #post数据value = {}value['username']='aaaa'value['password']='123123'data = urllib.urlencode(value)#添加headerrequest = urllib2.Request("http://localhost/client.php")request... 阅读全文
posted @ 2017-08-23 21:38 layfork 阅读(176) 评论(0) 推荐(0) 编辑
摘要: https://www.zhihu.com/question/47883186 https://www.zhihu.com/question/35461941 http://cuiqingcai.com/927.html http://blog.csdn.net/Bone_ACE/article/d 阅读全文
posted @ 2017-08-23 20:06 layfork 阅读(161) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/qq_28784775/article/details/54134169#comments 阅读全文
posted @ 2017-08-23 15:12 layfork 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 1.只有一条的时候用limit 12.加索引3.避免 SELECT *4.使用 ENUM 而不是 VARCHAR 阅读全文
posted @ 2017-08-22 10:28 layfork 阅读(135) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 31 下一页