摘要:
#去除img标签,1-7位空格, removeImg = re.compile('<img.*?>| {1,7}| ') #删除超链接标签 removeAddr = re.compile('<a.*?>|</a>') #把换行的标签换为\n replaceLine = re.c 阅读全文
摘要:
# -*- 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... 阅读全文
摘要:
先获得cookie到文件 从文件取出cookie 阅读全文
摘要:
# -*- coding: utf-8 -*-#coding=utf-8 在开头加这个 阅读全文
摘要:
import urllib2 try: response = urllib2.urlopen('http://www.baidu.com') except urllib2.URLError, e: print e.reason print response.read() 阅读全文
摘要:
http://blog.csdn.net/github_35160620/article/details/52486986 阅读全文
摘要:
postimport urlliimport urllib #post数据value = {}value['username']='aaaa'value['password']='123123'data = urllib.urlencode(value)#添加headerrequest = urllib2.Request("http://localhost/client.php")request... 阅读全文
摘要:
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 阅读全文
摘要:
http://blog.csdn.net/qq_28784775/article/details/54134169#comments 阅读全文
摘要:
1.只有一条的时候用limit 12.加索引3.避免 SELECT *4.使用 ENUM 而不是 VARCHAR 阅读全文