Commit 2cbb528d authored by litaolemo's avatar litaolemo

update

parent 85df97d4
...@@ -130,12 +130,12 @@ for pid in pid_list: ...@@ -130,12 +130,12 @@ for pid in pid_list:
# print(res_json) # print(res_json)
for img_url in res_json["img_list"]: for img_url in res_json["img_list"]:
try: try:
img_wb = retry_get_url(img_url).content img_wb = retry_get_url(img_url.replace("large", "sq480")).content
res = upload(img_wb, img_type=99) res = upload(img_wb, img_type=99)
# print(res) # print(res)
img_info = retry_get_url(res + "-imageinfo") img_info = retry_get_url(res + "-imageinfo")
img_info_json = img_info.json() img_info_json = img_info.json()
qiniu_img_list.append('<img src="' + res.replace("large", "sq480") + '-w">') qiniu_img_list.append('<img src="' + res + '-w">')
except Exception as e: except Exception as e:
print("down load img error %s" % e) print("down load img error %s" % e)
continue continue
......
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 to comment