|
@@ -102,16 +102,35 @@ class FootballSpider(scrapy.Spider):
|
102
|
102
|
playRes = []
|
103
|
103
|
|
104
|
104
|
# 胜平负
|
105
|
|
- playRes.append(res['had']['prs_name'])
|
|
105
|
+ try:
|
|
106
|
+ playRes.append(res['had']['prs_name'])
|
|
107
|
+ except:
|
|
108
|
+ playRes.append('')
|
|
109
|
+
|
106
|
110
|
# 让球胜平负
|
107
|
|
- playRes.append(res['hhad']['prs_name'])
|
|
111
|
+ try:
|
|
112
|
+ playRes.append(res['hhad']['prs_name'])
|
|
113
|
+ except:
|
|
114
|
+ playRes.append('')
|
|
115
|
+
|
108
|
116
|
# 比分
|
109
|
|
- playRes.append(res['crs']['prs_name'])
|
|
117
|
+ try:
|
|
118
|
+ playRes.append(res['crs']['prs_name'])
|
|
119
|
+ except:
|
|
120
|
+ playRes.append('')
|
|
121
|
+
|
110
|
122
|
# 总进球
|
111
|
|
- playRes.append(res['ttg']['prs_name'])
|
|
123
|
+ try:
|
|
124
|
+ playRes.append(res['ttg']['prs_name'])
|
|
125
|
+ except:
|
|
126
|
+ playRes.append('')
|
|
127
|
+
|
112
|
128
|
# 半全场
|
113
|
|
- playRes.append(res['hafu']['prs_name'])
|
114
|
|
-
|
|
129
|
+ try:
|
|
130
|
+ playRes.append(res['hafu']['prs_name'])
|
|
131
|
+ except:
|
|
132
|
+ playRes.append('')
|
|
133
|
+
|
115
|
134
|
matchId = re.sub(r'^.*get_pool_rs\?mid=', '', response.url)
|
116
|
135
|
ftResult = self._matchesMap[matchId]
|
117
|
136
|
ftResult.playRes = '|'.join(playRes)
|