Skip to content

关于爬取豆瓣网第一步获取请求失败的原因(我认为的)及解决方法 #74

Description

@taojunyan

response = requests.get(url, headers=headers)将response对照改成上面的样子即可,原因:我认为应该是发送的user—Agent没有被正确收到导致url拒绝了我们的请求,加上这个可以确保收到.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions