import browser_cookie3
dict1 = browser_cookie3.chrome(domain_name='baidu.com')
# print(dict1)
s=""
for u in dict1:
s = (u.name+"="+u.value+"; ")
# for k in dict1:
# v = str(dict1[k])
# s =s + (k+"="+v+"; ")
s = ("Cookie: "+s)
print(s)
import pyperclip
pyperclip.copy(s)
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
# 设置国内代理
pip install browser-cookie3
pip install pyperclip