|
@@ -1669,7 +1669,13 @@ def special_treatment(sourceContent, web_source_no):
|
|
new += '标段%d, 中标供应商: ' % (i + 1) + role + ',中标金额:' + money + '。'
|
|
new += '标段%d, 中标供应商: ' % (i + 1) + role + ',中标金额:' + money + '。'
|
|
sourceContent = sourceContent.replace(ser.group(0), new, 1)
|
|
sourceContent = sourceContent.replace(ser.group(0), new, 1)
|
|
elif web_source_no == '00753-14':
|
|
elif web_source_no == '00753-14':
|
|
- pcontent = sourceContent.find("div", id="pcontent")
|
|
|
|
|
|
+ body = sourceContent.find("body")
|
|
|
|
+ body_child = body.find_all(recursive=False)
|
|
|
|
+ pcontent = body
|
|
|
|
+ if 'id' in body_child[0].attrs:
|
|
|
|
+ if len(body_child) <= 2 and body_child[0]['id'] == 'pcontent':
|
|
|
|
+ pcontent = body_child[0]
|
|
|
|
+ # pcontent = sourceContent.find("div", id="pcontent")
|
|
pcontent = pcontent.find_all(recursive=False)[0]
|
|
pcontent = pcontent.find_all(recursive=False)[0]
|
|
first_table = None
|
|
first_table = None
|
|
for idx in range(len(pcontent.find_all(recursive=False))):
|
|
for idx in range(len(pcontent.find_all(recursive=False))):
|
|
@@ -1683,7 +1689,13 @@ def special_treatment(sourceContent, web_source_no):
|
|
first_table.find("tbody").append(_tr)
|
|
first_table.find("tbody").append(_tr)
|
|
t_part.clear()
|
|
t_part.clear()
|
|
elif web_source_no == 'DX008357-11':
|
|
elif web_source_no == 'DX008357-11':
|
|
- pcontent = sourceContent.find("div", id="pcontent")
|
|
|
|
|
|
+ body = sourceContent.find("body")
|
|
|
|
+ body_child = body.find_all(recursive=False)
|
|
|
|
+ pcontent = body
|
|
|
|
+ if 'id' in body_child[0].attrs:
|
|
|
|
+ if len(body_child) <= 2 and body_child[0]['id'] == 'pcontent':
|
|
|
|
+ pcontent = body_child[0]
|
|
|
|
+ # pcontent = sourceContent.find("div", id="pcontent")
|
|
pcontent = pcontent.find_all(recursive=False)[0]
|
|
pcontent = pcontent.find_all(recursive=False)[0]
|
|
error_table = []
|
|
error_table = []
|
|
is_error_table = False
|
|
is_error_table = False
|
|
@@ -1711,7 +1723,13 @@ def special_treatment(sourceContent, web_source_no):
|
|
first_table.find("tbody").append(_tr)
|
|
first_table.find("tbody").append(_tr)
|
|
t_part.clear()
|
|
t_part.clear()
|
|
elif web_source_no == '18021-2':
|
|
elif web_source_no == '18021-2':
|
|
- pcontent = sourceContent.find("div", id="pcontent")
|
|
|
|
|
|
+ body = sourceContent.find("body")
|
|
|
|
+ body_child = body.find_all(recursive=False)
|
|
|
|
+ pcontent = body
|
|
|
|
+ if 'id' in body_child[0].attrs:
|
|
|
|
+ if len(body_child) <= 2 and body_child[0]['id'] == 'pcontent':
|
|
|
|
+ pcontent = body_child[0]
|
|
|
|
+ # pcontent = sourceContent.find("div", id="pcontent")
|
|
td = pcontent.find_all("td")
|
|
td = pcontent.find_all("td")
|
|
for _td in td:
|
|
for _td in td:
|
|
if str(_td.string).strip() == "报价金额":
|
|
if str(_td.string).strip() == "报价金额":
|