Commit eba7b088 by lichenggang

update server

parent 8ae4da3a
Showing with 3 additions and 0 deletions
......@@ -62,6 +62,9 @@ class SeoCheckHandler(TornadoBaseHandler):
dom=etree.HTML(t)
data = dict_data()
data['baidu_url'] = base_url.format(target)
if '没有找到该URL' in t:
data['has_included'] = 0
return data
if dom.xpath('//div[@id="content_left"]'):
data['has_included'] = 1
snap_shot_url = dom.xpath('//a[contains(text(),"百度快照")]/@href')[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