-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpquery4.py
156 lines (140 loc) · 24.6 KB
/
pquery4.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
# encoding=utf-8
'''
>>> from pyquery import PyQuery as pq
>>> from lxml import etree
>>> import urllib
>>> d = pq("<html></html>")
>>> d = pq(etree.fromstring("<html></html>"))
>>> d = pq(url='http://google.com/')
>>> # d = pq(url='http://google.com/', opener=lambda url, **kw: urllib.urlopen(url).read())
>>> d = pq(filename=path_to_html_file)
'''
'''
mysql 数据库密码
用户
密码
'''
host=''
user=''
passwd=''
db=''
import urllib
from optparse import OptionParser
from pyquery import PyQuery as pq
from lxml import etree
import MySQLdb
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
postData = {
'__EVENTTARGET':'ctl00$ContentPlaceHolder1$GSHPageController_BestStory$cboPage',
'__EVENTARGUMENT':None,
'__LASTFOCUS':None,
'__VIEWSTATE':'''/wEPDwULLTE5MjQ3NjgxNjgPZBYCZg9kFgICAw9kFggCAw9kFiACAQ8PFgIeC05hdmlnYXRlVXJsBQ1mcm1JbmRleC5hc3B4ZGQCAw9kFgJmD2QWAgIBD2QWAmYPZBYCAgEPFgIeC18hSXRlbUNvdW50AgIWBGYPZBYCZg8VB2Vmcm1BRENvdW50ZXIuYXNweD9JRD0xMTEmVVJMPWh0dHAlM2ElMmYlMmZ3d3cuc3RvcnljaGluYS5jbiUyZmZybVNwZWNpYWxOZX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oe3rCwKoy621AwKP4o+ADQLAgcKcAgKnuKTqDAK6r4bBBgKRxulcAvT8y6sNAsuTrYEHAq6Kj5wBAoWh8esLAqjLsbUDAo/ik4ANAsCBxpwCAqe4qOoMArqvisEGApHG7VwC9PzPqw0Cy5OxgQcCroqTnAEChaH16wsCqMu1tQMCj+KXgA0CwIHKnAICp7is6gwCuq+OwQYCkcbxXAL0/NOrDQLLk7WBBwKuipecAQKFofnrCwKoy7m1AwKP4puADQLAgc6cAgKnuLDqDAK6r5LBBgKRxvVcAvT816sNAsuTuYEHAq6Km5wBAoWh/esLAqjLvbUDAo/in4ANAsCBkp8CAqe49OoMArqv1sEGApHGuV8C9Pybqg0Cy5P9gQcCrorfnAEChaHB6wsCqMuBtQMC+Nvb2Q0WxZKvg+ny9KP0XEyx8r0IFLn9m1l/+Jxjr1RGXyoo0g==',
'ctl00$GSHLoginBar1$txtMemberID':"",
'ctl00$GSHLoginBar1$txtPassword':"",
'ctl00$GSHLoginBar1$hidSearchKey':"",
'ctl00$GSHLoginBar1$hidSearchType':"",
'ctl00$GSHLoginBar1$txtMemberID2':"",
'ctl00$GSHLoginBar1$txtPassword2':"",
'ctl00$ContentPlaceHolder1$GSHGridView_BestStory$hidOrderBy':"",
'ctl00$ContentPlaceHolder1$GSHPageController_BestStory$cboPage':2,
'ctl00$ContentPlaceHolder1$GSHPageController_BestStory$hidPageIndex':1,
'hidChoiced':1
}
#conn=MySQLdb.connect(host=host,user=user,passwd=passwd,db=db,charset="utf8")
#cursor = conn.cursor()
#n = cursor.execute("select story_title from story ")
#rows = cursor.fetchall()
rows=[]
def post_data(url,app_para_dct):
content = ""
if app_para_dct:
#url = """http://www.storychina.cn/frmBestStoryType.aspx?ID=2"""
para_data = urllib.urlencode(app_para_dct)
f = urllib.urlopen(url, para_data)
content = f.read()
return content
def fetch2(url):
#d = pq(url='http://www.storychina.cn/frmBestStory_Detail.aspx?ID=37615', opener=lambda url, **kw: urllib.urlopen(url).read().decode('utf-8'))
d = pq(url, opener=lambda url, **kw: urllib.urlopen(url).read().decode('utf-8'))
d = d.find('.main_txt')
title=d('h1').text()
if not (title,) in rows:
f = open('gs\\'+title + ".txt", 'wb')
f.write(d('h1').text().encode('utf-8'))
f.write("\n")
f.write(d('h2').text().encode('utf-8'))
f.write("\n")
p = d.find('div')
for p_i in p.items('div'):
tx = p_i.text()
if ( u'/*评论区' in tx ):
break;
if (u'分享到: document' in tx):
break
f.write(p_i.text() )
f.write("\n\n")
f.close()
def fetch(url):
#d = pq(url='http://www.storychina.cn/frmBestStory_Detail.aspx?ID=40396', opener=lambda url, **kw: urllib.urlopen(url).read().decode('utf-8'))
d = pq(url, opener=lambda url, **kw: urllib.urlopen(url).read().decode('utf-8'))
lines = 0
d = d.find('.main_txt')
title=d('h1').text()
if not (title,) in rows:
f = open('gs\\'+title + ".txt", 'w')
f.write(d('h1').text().encode('utf-8'))
f.write("\n")
f.write(d('h2').text().encode('utf-8'))
f.write("\n")
p = d.find('p')
for p_i in p.items('p'):
tx = p_i.text()
#print tx
if ( u'/*评论区' in tx ):
break;
#print 'the len', len(tx), 'len >0', len(tx) > 0
if len(tx.encode('utf-8')) > 0:
lines += 1
f.write(tx)
f.write("\n\n")
f.close()
if lines < 1:
fetch2(url)
d = pq(url='http://www.storychina.cn/frmBestStoryType.aspx?ID=2', opener=lambda url, **kw: urllib.urlopen(url).read().decode('utf-8'))
postData['__VIEWSTATE'] = d.find('#__VIEWSTATE').attr['value']
postData['__EVENTVALIDATION'] = d.find('#__EVENTVALIDATION').attr['value']
def scoll_page(index):
url='http://www.storychina.cn/frmBestStoryType.aspx?ID=2'
postData['ctl00$ContentPlaceHolder1$GSHPageController_BestStory$cboPage'] = index
postData['ctl00$ContentPlaceHolder1$GSHPageController_BestStory$hidPageIndex'] = index - 1
postData['hidChoiced'] = index - 1
print 'xxxxxxxxxx'
d = pq(url='http://www.storychina.cn/frmBestStoryType.aspx?ID=2', opener=lambda url, **kw: post_data(url,postData).decode('utf-8'))
#d = pq(post_data(url,postData).decode('utf-8'))
print 'here'
#print d
d = d.find('.main_txt')
d2 = d('div:eq(1)')('table')('tr')
for tr in d2:
td = tr[1]
tdpq = pq(td).find('a')
a = tdpq.attr['href']
if (a.find('javascript') < 0):
fetch(r'http://www.storychina.cn/'+ a);
print a
#print type(td)
if __name__ == '__main__':
import time
for i in range(1,200):
try:
print 'start =======', i
scoll_page(i)
time.sleep(0.1)
except:
time.sleep(5)
scoll_page(i)
continue
#fetch('http://www.storychina.cn/frmBestStory_Detail.aspx?ID=40396')