AttributeError

错误:

AttributeError: 'set' object has no attribute 'items'

解决:

header是一个字典类型,所以需要(key-value)

改成:headers = {'User-Agent':"User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/17.17134"}

你可能感兴趣的:(AttributeError)