Categories
How to pass cookies when parsing a web page in python?
I need a standard solution that does not use third-party libraries.
Answer the question
In order to leave comments, you need to log in
import requests cookie = {'session': '17ab96bd8ffbe8ca58a78657a918558'} r = requests.post('http://ya.ru', cookies=cookie)
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question