Commit 8ae4da3a by lichenggang

errors=ignore

parent cb177d7e
Showing with 2 additions and 1 deletions
......@@ -67,7 +67,8 @@ class SeoCheckHandler(TornadoBaseHandler):
snap_shot_url = dom.xpath('//a[contains(text(),"百度快照")]/@href')[0]
detail_headers['Referer'] = detail_referer.format(target)
async with self.proxy_request(snap_shot_url, headers=main_headers,allow_redirects=True) as resp:
detail = await resp.text()
detail = await resp.read()
detail = detail.decode(encoding='gb2312',errors='ignore')
snap_time = snap_time_pat.findall(detail)
if snap_time:
data['included_time'] = snap_time[0]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment