The whole else is become SyntaxError: invalid syntax problem

if len(content_list) !=0:

content = '\n'.join(content_list)

with open(name + ‘.txt’, mode=‘a’, encoding=‘utf-8’) as f:
f.write(title)
f.write(‘\n’)
f.write(‘content’)
f.write(‘\n’)
print('成功保存: ', title)

else:
img_content = Vip.get_vip_img(link=url)
with open(‘img\’ + ‘.title’ + ‘.png’, mode=‘wb’) as img_f:
img_f.write(img_content)
print('成功保存: ', title)

else:
^^^^
SyntaxError: invalid syntax

In python you can only have one else statement.
The correct structure would be

if statement:
    if clause
elif statement:
    elif clause
else statement:
    else clause

You can have as many elif blocks as you need