Python urllib3 and how to handle cookie support?

后端 未结 5 889
野趣味
野趣味 2020-12-06 16:55

So I\'m looking into urllib3 because it has connection pooling and is thread safe (so performance is better, especially for crawling), but the documentation is... minimal to

5条回答
  •  春和景丽
    2020-12-06 17:35

    You need to set 'Cookie' not 'Set-Cookie', 'Set-Cookie' set by web server.

    And Cookies are one of headers, so its nothing wrong with doing that way.

提交回复
热议问题